苹果电子钱包通行证:更新通话触发 [英] Apple Wallet Passes : Update Calls trigger
问题描述
关于如何实现更新服务"的文章很多.已经存在.但是,我在下面有一个严重的问题:
何时会通过技术更新?是什么触发更新? 何时会调用存折的更新服务?
-
用户单击更新推送通知时
-
用户打开通行证时
-
在后台静默完成
-
当自动更新关闭并且用户打开通行证时
请帮助
可以通过以下两种方式之一来启动密码更新:
- 用户对通行证进行拉动刷新.
- 您将推送通知发送到设备.
对于数字2,设备通过联系通行证的WebServiceUrl指定的服务来响应推送通知.
它发送设备标识符和通过类型标识符. Web服务负责确定需要更新的通行证,并返回一组序列号.它通过查看update标记来执行此操作,并应用对传递有意义的任何机制.
然后,设备将为每个序列号请求更新的通行证.
有关此过程的详细说明,请参阅Apple的文档:
There are numerous articles on "how to implement update service" is already present. However, I have serious question below:
when will pass get updated technically? what is the trigger for updating? When will be passbook's update service be called?
when update push notification is clicked by user
when pass is opened by user
silently done in background
when automatic update is off and user opens a pass
Please help
Pass updates can be initated in one of two ways:
- The users does a pull-to-refresh on the pass.
- You send a push notification to the device.
In the case of number 2, the device responds to the push notification by reaching out to the service specified by the pass's WebServiceUrl.
It sends the device identifier and pass type identifier. The web service is responsible for determining the passes that need updating and it returns a set of serial numbers. It does this by looking at the update tag and applies whatever mechanism makes sense for the pass.
The device will then request an updated pass for each of these serial numbers.
The process is described in far more detail in Apple's Documentation:
这篇关于苹果电子钱包通行证:更新通话触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!