Apple Wallet:每个设备的 Push Token 是唯一的吗? [英] Apple Wallet: Is Push Token unique for each device?

查看:85
本文介绍了Apple Wallet:每个设备的 Push Token 是唯一的吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我做了一个实现,我可以为苹果钱包创建通行证.一旦设备向服务器注册将推送该设备唯一的令牌还是将来最终会改变?若有,原因为何?

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?

推荐答案

是 - 为了保护隐私,推送令牌会定期轮换 - 这可能是随机发生的,或者随着硬件的变化(用户转移到新手机),或者经常伴随 iOS 升级.

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.

您的网络服务 API 实现会将其视为新的注册请求,并且您只会通过反馈 APNS API(现已弃用)或收到 ExpiredProviderToken (403) 来自较新的 HTTP2 APNS API 的响应.

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.

这篇关于Apple Wallet:每个设备的 Push Token 是唯一的吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆