![]() ![]() It is not related to the device identifier (UDID). The device library identifier is a PassKit-specific shared secret between the user’s device and your web server. Two shared secrets are used to authorize requests. During development, you can use the developer settings to allow plain HTTP connections.īefore responding to a request, you server always checks that the request is authorized. Wallet requires an HTTPS connection to your server for all communication. It must include the protocol, and it can include an optional port number. The web service URL tells Wallet how to contact your server during the update process. In this case, you provide only a pass, so Wallet needs a standardized way to communicate with your server. This differs from most uses of push notifications, in which you provide an app that is free to communicate with your server however you prefer. Your server implements a specific web service API, which allows this communication to happen. ![]() Identifies the device and authorizes requestsĪllows the server to send push notifications to the device Tells Wallet how to contact your web server The update process uses the following pieces of information: The user’s device asks your server for the latest version of each pass that has changed.įigure 6-1Interaction between the client and your server The user’s device receives the notification, and it queries your server to get a list of changes. Some change triggers an update, and your server sends a push notification. At a high level, it consists of the following steps, shown in Figure 6-1:Ī pass that supports updates is installed, and the user’s device registers with your server to get updates. Updating a pass is a cooperative effort between the user’s device, Apple’s servers, and your servers. ![]() For example, a season ticket gains access to every game of the season and is updated before each game.Īny field on a pass can be updated except for the authentication token and serial number. You can also update a pass when it represents multiple real-world actions. When something in the real world changes, such as a delay to a departure, you can update the pass. Passes allow the user to take real-world actions, and they reflect real-world state. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |