Does anybody know if device tokens for iOS push notifications are the same for development and production builds?
Asked
Active
Viewed 5,757 times
2 Answers
11
Client get a different device token when registering themselves in development builds vs applications downloaded from the App Store.
Take note that the device token in the production environment and the device token in the development environment are not the same value.

Zandor Smith
- 558
- 6
- 25

Vinay Bagale
- 2,361
- 4
- 36
- 45
-
Thanks, I've completely overlooked this sentence! – deko Mar 17 '14 at 09:49
-
Maybe this reference helps too: http://stackoverflow.com/questions/16243855/how-to-detect-that-a-provisioning-profile-is-for-development-or-distribution-pr – xlarsx Oct 20 '15 at 18:53
-
1the reference is a broken link – jameshfisher Aug 16 '16 at 15:09
2
The production APNS system is completely separate from the development (sandbox) APNS system. There are separate certificates, and server addresses. When you run the application using a development provisioning profile, the sandbox APNS is what will be used, when you either archive an application (using a distribution profile) or submit the application to the App Store, the production APNS is responsible.

LJ Wilson
- 14,445
- 5
- 38
- 62