I am making get request using curl command to the sandbox url with test notification token to receive the signed payload base64 string as a response.
curl -v -H 'Authorization: Bearer token' -X GET https://api.storekit-sandbox.itunes.apple.com/inApps/v1/notifications/test/{testNotificationToken}
Signed payload contains 3 base64 string separated by dot(.), while encoding the second base64 string which is payload i am getting the expected properties as described here https://developer.apple.com/documentation/appstoreservernotifications/responsebodyv2decodedpayload
"notificationType":"TEST","notificationUUID":"9143d462-630c-467d-9480-47acedac9c99","data":{"bundleId":"com.example.exampleapp","environment":"Sandbox"},"version":"2.0","signedDate":1668566967923}
In the data object the missing properties are signedRenewalInfo
and signedTransactionInfo
.
As mentioned here https://developer.apple.com/documentation/appstoreservernotifications/data
Why I am not getting those two properties in data object? Is it because of sandbox environment?