2
votes

I am implementing Push Notifications for two of my Apps which are in iTunes. I have installed both Apps in my iPhone. When they register to my provider (server), I can see that Device ID and Device Token for both apps is the same.

I sent a push notification to app A from the provider, but it was delivered on my iPhone to app B. It obviously happens since both apps are registered with same device token.

Shouldn't APNS provide unique device token? Is there any additional parameter I can send to APNS to differentiate the Apps? I have generated different certificates for both of these apps and I'm using corresponding certificates to push notifications.

1

1 Answers

4
votes

The device token is the same for all Apps running on the same device. You differentiate the Apps by using different certificates for different Apps. The certificate lets the APN server know to which App the message should be delivered.