Starting May 1st, 2013, Apple will stop accepting apps that access unique device identifiers (UDIDs). Sounds like didRegisterForRemoteNotificationsWithDeviceToken:
, will no longer get passed a UDID as the device token; but so far, this doesn't seem to be the case in iOS 6.0.
To get around the issue and hedge the risk of my app getting rejected, I found this S.O. question, where they suggest using ASIdentifierManager
to check if the user has enabled ad tracking for the app and then get the advertisingIdentifier
, and use it as the device token. Should I be doing that inside registerForRemoteNotificationTypes
before registering the device for push notifications on my servers or simply trust whatever I get passed as deviceToken
?
I see no need for you to be switching so eagerly away from UDIDs. Apple is explicitly removing applications that use UDIDs, however the APS system doesn't use UDIDs, it uses device tokens. From the documentation on that method:
All is well in APNS-land. Carry on.