IOS 8 testflight beta push tokens

I need to figure out if the deviceToken I am getting from apple is a SANDBOX token or a PRODUCTION token.

You will get PRODUCT tokens before using the distribution build config, but with the testflight beta program I do get device tokens, which are SANDBOX tokens, even when I build with a production certificate to sign.

Any ideas?

+3


source to share


1 answer


To send push notifications through TestFlight, you need a server side production receipt. A production receipt is generated in the Apple Dev Center under the bundle / app identifier. The production certificate has to be downloaded from the ADC site, converted from .p12 to .pem using openssl, and then referenced by a script that does push notifications.



+1


source







All Articles