UDID for Push Notification instead of Device Token?

Jarich picture Jarich · Aug 6, 2013 · Viewed 10.3k times · Source

I just successfully implemented a sample push notification in iOS. Currently, I used the device token in sending the message.Now, I have a question regarding Push Notification requirements. Can we use the UDID of the device for Push Notification instead of Device Token? I know the device token can do the work alone but is it possible to use UDID for push notification? Does Apple allow that?

Answer

rckoenes picture rckoenes · Aug 6, 2013

No, you can only use the Device Token. The push notification server API will only accept Device tokens and will also check if you are allowed to sent a notification to that installation by checking the Certificate.

The Device token is unique for your app on a specific device. If the user has multiple device he/she will also have multiple device tokens (one for each install of your app).

When the user deletes you app and reinstalls it the device token can also change.

Also the UDID is no longer useable by developers, Apple has restricted the use of the UDID and you can longer use the UDID anywhere in you code.