4

Does anybody know if device tokens for iOS push notifications are the same for development and production builds?

deko
  • 2,534
  • 3
  • 34
  • 48

2 Answers2

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.

Ref: https://developer.apple.com/library/archive/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingwithAPNs.html

Zandor Smith
  • 558
  • 6
  • 25
Vinay Bagale
  • 2,361
  • 4
  • 36
  • 45
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