Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More ticket in one file #81

Open
sorcy86 opened this issue Jul 12, 2019 · 1 comment
Open

More ticket in one file #81

sorcy86 opened this issue Jul 12, 2019 · 1 comment

Comments

@sorcy86
Copy link

sorcy86 commented Jul 12, 2019

Hello
It is possible to store multiple tickets in one .pkpass file, with this library?

@razvanphp
Copy link
Collaborator

razvanphp commented Dec 15, 2023

According to Apple Developer Documentation, you need to create a bundle of passes:
Provide a bundle of passes to enable your user to download multiple passes at once. To create the pass bundle:

  1. Create a .zip file containing the .pkpass files for the passes that are part of the bundle.
  2. Change the extension of the .zip file to .pkpasses.

You can distribute a bundle of passes the same way you distribute a single pass. The MIME type for a bundle of passes is application/vnd.apple.pkpasses.

Note
You can have up to 10 passes or 150 MB for a bundle of passes.

This is currently not possible with the lib, but we could add a helper function in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants