Iphone - Multiple Apps, Different App ID, Same Token

前端 未结 2 1508
庸人自扰
庸人自扰 2020-12-25 08:58

From what I understand, if there are multiple apps with different App ID installed on a device, the tokens for push notification generated for each apps should be unique one

相关标签:
2条回答
  • 2020-12-25 09:42

    For development provisioning profiles, the device token will be the same for all other apps on that device using a development provisioning profile.

    In production (the App Store), the device token will be unique for each application as far as I know. But I'm not 100% certain.

    As for why the push notification wasn't delivered to your devices, that's hard to answer without more detail.

    0 讨论(0)
  • 2020-12-25 09:47

    The device token is not unique for each application, no matter if it is the production or development environment. You might be wondering, if the device token is the same for all apps then how is it possible that push notifications are routed to the right devices and the right applications? The answer is the app's unique bundle id. Each and every application on the App Store has a unique identifier, e.g.: com.mycompanyname.dummyapp. When an application registers itself for push notifications both the app bundle id and the device token are registered on Apple's servers.

    Willy, one last thing that you might want to check, the very first step when configuring Push notifications is the creation of a CertificateSigningRequest.certSigningRequest file from the Keychain manager. If you have 2 apps you have to do this step twice so you end up with 2 different files that will be used in Apple's portal to create the SSL.cer file. Your problem might be that you used the same .certSigningRequest to create the different SSL.cer files instead of using a different one.

    0 讨论(0)
提交回复
热议问题