miyabi / react-native-passkit-wallet

React Native module to handle PassKit.
MIT License
52 stars 37 forks source link

Add multiple tickets at once #24

Open labmorales opened 2 years ago

labmorales commented 2 years ago

Is there a way to add multiple tickets at once or there are any plans on changing this library to support that?

achall9 commented 2 years ago

I could not find an way to do so. I made a for loop and it worked but users need to click add/cancel for each pass still. Limitation of Apple.

labmorales commented 2 years ago

Seems like the API can receive multiple passes at a time https://developer.apple.com/documentation/passkit/pkpasslibrary/1617093-addpasses and for grouping the tickets together on the wallet I guess we can use the groupingIdentifier field (https://developer.apple.com/library/archive/documentation/UserExperience/Reference/PassKit_Bundle/Chapters/TopLevel.html).