Is there a way to add multiple passes to Apple Wallet in one click?

When downloading a .zip file with a pass package, when trying to open a file it only appears as a file but is not added to the wallt.

Answered by DTS Engineer in 893639022

Hi @BrendaCR, @Globobalear,

PKAddPassesViewController

With PassKit and PKAddPassesViewController, you provide an array of PKPass objects. This allows you to present multiple passes at once in a single UI prompt, and the user can add them all in one confirmation.

let passes: [PKPass] = [pass1, pass2, pass3]
let addPassesVC = PKAddPassesViewController(passes: passes)
present(addPassesVC, animated: true)

The user is presented with all passes at once, and then taps "Add All".

.pkpasses File Format

Otherwise, as @AlexanderCerutti, says, you can bundle multiple .pkpass files into a single .pkpasses (plural) file, which is a zip archive. When a user opens or taps this file (via email, Safari, Messages, etc.), Wallet will prompt them to add all included passes at once.

Note: If an app or website allows a user to download a .pkpasses bundle, tapping it will let them add all passes in one step. Otherwise, each .pkpass file typically requires a separate tap or confirmation to add individually.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

I'm interested in this topic, is there any news?

There's .pkpasses format, which is a zip file (just like .pkpass) with several .pkpass inside, but apparently this is supported only in Safari and Mail (still don't understand why but this sounds stupid)

Hi @BrendaCR, @Globobalear,

PKAddPassesViewController

With PassKit and PKAddPassesViewController, you provide an array of PKPass objects. This allows you to present multiple passes at once in a single UI prompt, and the user can add them all in one confirmation.

let passes: [PKPass] = [pass1, pass2, pass3]
let addPassesVC = PKAddPassesViewController(passes: passes)
present(addPassesVC, animated: true)

The user is presented with all passes at once, and then taps "Add All".

.pkpasses File Format

Otherwise, as @AlexanderCerutti, says, you can bundle multiple .pkpass files into a single .pkpasses (plural) file, which is a zip archive. When a user opens or taps this file (via email, Safari, Messages, etc.), Wallet will prompt them to add all included passes at once.

Note: If an app or website allows a user to download a .pkpasses bundle, tapping it will let them add all passes in one step. Otherwise, each .pkpass file typically requires a separate tap or confirmation to add individually.

Cheers,

Paris X Pinkney |  WWDR | DTS Engineer

Is there a way to add multiple passes to Apple Wallet in one click?
 
 
Q