苹果电子钱包通行证:更新通话触发 [英] Apple Wallet Passes : Update Calls trigger

查看:237
本文介绍了苹果电子钱包通行证:更新通话触发的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

关于如何实现更新服务"的文章很多.已经存在.但是,我在下面有一个严重的问题:

何时会通过技术更新?是什么触发更新? 何时会调用存折的更新服务?

  1. 用户单击更新推送通知时

  2. 用户打开通行证时

  3. 在后台静默完成

  4. 当自动更新关闭并且用户打开通行证时

    请帮助

解决方案

可以通过以下两种方式之一来启动密码更新:

  1. 用户对通行证进行拉动刷新.
  2. 您将推送通知发送到设备.

对于数字2,设备通过联系通行证的WebServiceUrl指定的服务来响应推送通知.

它发送设备标识符和通过类型标识符. Web服务负责确定需要更新的通行证,并返回一组序列号.它通过查看up​​date标记来执行此操作,并应用对传递有意义的任何机制.

然后,设备将为每个序列号请求更新的通行证.

有关此过程的详细说明,请参阅Apple的文档:

https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/PassKit_PG/Updating.html#//apple_ref/doc/uid/TP40012195-CH5-SW1

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?

  1. when update push notification is clicked by user

  2. when pass is opened by user

  3. silently done in background

  4. when automatic update is off and user opens a pass

    Please help

解决方案

Pass updates can be initated in one of two ways:

  1. The users does a pull-to-refresh on the pass.
  2. 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:

https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/PassKit_PG/Updating.html#//apple_ref/doc/uid/TP40012195-CH5-SW1

这篇关于苹果电子钱包通行证:更新通话触发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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