官术网_书友最值得收藏!

How it works…

The following diagram describes how Passes are delivered to a Passbook, and how these can be updated:

The process of creating a Pass involves cryptographically signing the Pass using a certificate and key generated from your iOS developer account. For this reason, the generation of the Pass needs to take place on a server, and then be delivered to Passbook either via your own app, as an e-mail attachment, or by embedding it in a website.

It's important to note that Apple does not provide any system for the Pass providers to authenticate, validate, or invalidate Passes. The Pass can contain barcode information, but it is up to the Pass provider to provide the infrastructure for reading and processing these barcodes.

Instead of just sitting in the Passbook app, waiting to be used, a Pass can contain location and time triggers, that proactively present the Pass to the user, serving as both a reminder and providing convenient access. For example, an event Pass could be set to appear 15 minutes before the start time, at the time when a user is likely to want to present their event Pass to an attendant. Alternatively, a coupon Pass could be presented as a user approaches their local store where the coupon can be redeemed.

Passes that have been added to Passbook can also be updated dynamically. For example, if the Pass is for a store card, a change to the card balance may require an update to the Pass. In the case of, for example an airline ticket Pass, a departure gate change should trigger a Pass update.

When a Pass needs to be updated, your server sends a push notification to the Passbook app on the user's device. This push notification is not displayed to the user.

Upon receiving this Push Notification, the Passbook app then makes a request to your server for the updated Pass information. Your server would then respond to the relevant request, and provide the updated information in the expected format.

When the Passbook App on the user's device receives the updated information, it silently updates the Pass. The next time the user looks at the Pass contained in the Passbook app, the updated information is displayed.

主站蜘蛛池模板: 吴江市| 武宁县| 磴口县| 定陶县| 济宁市| 长治市| 武山县| 星子县| 阳朔县| 云林县| 嘉定区| 唐河县| 稻城县| 屏东县| 托克托县| 高安市| 登封市| 老河口市| 吉隆县| 清新县| 开平市| 舞钢市| 七台河市| 奉贤区| 柳林县| 安庆市| 锡林浩特市| 兴国县| 黑龙江省| 绥棱县| 米脂县| 江安县| 额尔古纳市| 乌兰浩特市| 黔南| 弥勒县| 无为县| 洱源县| 文登市| 织金县| 徐闻县|