Apple Wallet: Is Push Token unique for each device?

感情迁移 提交于 2021-02-08 03:46:31

问题


I have made an implementation which i can create passes for apple wallet. Once the device registers with server will push token unique for this device or will change eventually in future? If yes, what are the reasons for that?


回答1:


Yes - to help with privacy, the push tokens are regularly rotated - this may occurs at random, or with changes in hardware (user transferring to a new phone), or often with iOS upgrades.

Your web-service API implementation will see this as a new registration request, and you will only learn that the old token is invalid through either the feedback APNS API (now deprecated), or by receiving a ExpiredProviderToken (403) response from the newer HTTP2 APNS API.



来源:https://stackoverflow.com/questions/54311303/apple-wallet-is-push-token-unique-for-each-device

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