问题
I come to know that Apple started to reject apps that access UDIDs. Then How can we send push notification without accessing UDIDs. Is it possible? if yes, please help me to solve this problem.
thanks in advance.
回答1:
The device token (used by APNS) and the UDID are two different things. They have nothing to do with each other.
You obtain the device token for push notifications in your app delegate's application:didRegisterForRemoteNotificationsWithDeviceToken:
method.
The documentation notes the following:
The device token is different from the uniqueIdentifier property of UIDevice because, for security and privacy reasons, it must change when the device is wiped.
来源:https://stackoverflow.com/questions/15926060/sending-push-notification-without-accessing-udid