问题
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