validate iphone push notification token? -


I have not applied push notifications in my app yet. I understand that the token request to the app running on the device , Then have to send my token to my server, and whenever I want to push a device into a device / app, my server must pass this token in Apple.

Is the specific requested push token for the app, or do all the apps on the device share a token?

Do I have a method to validate a token sent to my server by a request within my app is actually generated?

I am worried about a potential fraud where a rogue application can send a valid token to my server. My app was not a token requested, my service sent push notifications to that device / app Will trick in

I understand that this is an unexpected scenario. I am trying to create a mechanism to verify that when my app sends information to my server, I'm talking with the example, not some bad clients. Push notifications look like a possible way of achieving this.

Requested push tokens are specific apps or all apps share tokens on the device? The token requested is not specific to your app and every device.

Do I have a method to validate that the token sent to my server is actually generated by a request within my app? There is a service with apples in which you can query and find that the token is "still valid", it is used for things like when a user deletes your application and their The token is invalid, you can ask the service and check that the token is still valid and if it has not been removed from your database ... then you also make sure to ensure this service. Any tokens are valid ... anyway if you try to put an illegal token, then I doubt that nothing will happen ...

Hope it helps


Comments