Can you control the order of passes while adding it to Apple Wallet?
Asked Answered
D

1

7

I am using this API to add multiple grouped passes to Apple Wallet. I realized that added passes in the wallet doesn't follow the order of array [PKPass] that I gave it to this API.

public func addPasses(passes: [PKPass], withCompletionHandler completion: ((PKPassLibraryAddPassesStatus) -> Void)?)

The interesting thing to note here is when I tap on View All before adding the passes it does show all the passes in order but after tapping on Add All and then launch the Wallet app to see the order od added pass it's not same anymore.

Any clue why this is happening and how to maintain an order?

Dab answered 30/11, 2016 at 6:48 Comment(1)
Apple doesn't mention nothing about pass order on their documentation, so to be honest, I don't think it's possibleMonkhood
H
2

There is no documentation or PassKit API which states in which order can passes appear in Wallet app.

It can only be done manually as stated here.

To reorder your passes, tap and hold a pass, then drag it to a new place. With iOS 7 or later, your change will update on all of your devices.

Herbal answered 14/12, 2016 at 6:38 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.