Sending Push Notification without accessing UDID

陌路散爱 提交于 2019-12-10 19:54:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!