inter.buu
inter.buu

Reputation: 1

Can you update serial number of the iOS-wallet pass?

Can you update serial number of the installed iOS-wallet pass?
The Wallet Developer Guide states that you can update some fields of the wallet pass but does not say whether you can update any field. Also I know that serial number is used to send update-notification, so, will changing the serial number break the update process?
I have not found the answer using Wallet Developer Guide. Can someone help me, please.

Upvotes: 0

Views: 1250

Answers (2)

Brandon
Brandon

Reputation: 23498

The bundleID is used to identify which App the pass belongs to.. The SerialNumber is to identify which pass it is that needs updating or changing..

You can have multiple passes per app and to distinguish them, we use the serial number. You can't change the serial number easily. I mean, you can install the pass as a new pass with a new serial number and delete the old one (additional logic such as above, would require a new release of your app). That's about it. You can't just change the serial number alone.

One option that doesn't currently work, would have been to update the old pass with an expiration date.

Upvotes: 0

PassKit
PassKit

Reputation: 12581

Bottom line is no. The documentation lists only 2 fields that cannot be changed; the serialNumber and passTypeIdentifier. The combination of these two fields creates a unique key which is used in a number of internal and external APIs to explicitly identify the pass in the wallet.

The combination of pass type identifier and serial number is used throughout PassKit to uniquely identify a pass. Two passes of the same type with the same serial number are understood to be the same pass, even if other information on them differs. For example, when a pass is updated, the new version has the same pass type identifier and serial number as the old version, so the new version replaces the old version.

If your web service returns a serial that is different to the serial requested in the Getting the Latest Version of a Pass request, then the device will reject that pass.

The only option open to you is to install a new pass with the new serial number and delete the old pass. If you are interacting via an app, it is possible to automate this (although will still require a user action to install the updated pass), if not, you will need to guide your users through the process.

Upvotes: 1

Related Questions