Can the pass in the savings book be updated by the application or only APN?

If I have an application that creates a passage, and the user adds it to the savings book, is it possible for the application to update the contents of this passage later.

i.e. when the application starts, it can update the skip using the new time trigger and new content, and then when the trigger starts to fire, the user will be notified.

Or can an existing pass be updated only by APN and nothing else?

+4
source share
2 answers

I am not sure why the answer is accepted above, as it is incorrect.

An application can update a pass without push notification, provided that it has permission for the passTypeIdentifier and the missing serial number is known.

You must create and subscribe to the server outside your application, but as soon as your application receives a new .pkpass package, it can update the pass using the replacePassWithPass method of the PKPassLibrary class.

From the document above.

Your application downloads a new pass from your server and uses the replacePassWithPass: PKPassLibrary class method to install it.

+2
source

AFAIK apn only - it needs to be rewritten so that the signature is valid for new content

see https://developer.apple.com/library/ios/#documentation/UserExperience/Conceptual/PassKit_PG/Chapters/Apps.html#//apple_ref/doc/uid/TP40012195-CH6-SW1

Edit: as a PassKit user says, of course, for updating Pass BUT
APN (here: YOUR access point => YOUR server) PUSH notification is not required to create new pass data.

+1
source

All Articles