Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS push notification device token for development and production

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

like image 298
deko Avatar asked Dec 08 '22 09:12

deko


2 Answers

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

like image 64
Vinay Bagale Avatar answered May 31 '23 00:05

Vinay Bagale


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.

like image 26
LJ Wilson Avatar answered May 30 '23 23:05

LJ Wilson