-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Generated pkpass object is invalid #43
Comments
I found this site pretty useful when debugging invalid pkpass files: Most "invalid" errors occur due to expired certificates though... |
Hi, Cheers for the fast response, that's one of the tools we've been using to validate. Currently it just spits out "Failed to process the pkpass file." with no further info. Any advice? Here's our pkpass creation function btw:
|
Unfortunately my experience with boardingPass type pkpass files is somewhat limited (I mainly use them for event ticketing) But from what I can see you are putting a LOT of information in your passes. (Header, primary, secondary, auxiliary...) I would suggest generating a pass with only the bare minimum of information and get this to work. Once these passes validate successfully you can start adding more fields one by one. Then you know exactly on what field validation starts to act up? |
Interesting, we're using essentially a copy/paste of the config in the README. Do you know what the bare minimum fields are? |
I also started experimenting with this package. All fields are validated successfully on https://pkpassvalidator.azurewebsites.net/#wwdc-certificate-versions I had the wrong (G6) version of worldwide certificate, a missing icon@2x and wrong team ID. But after fixing those the pass file still remains broken and can not be opened. Neither on Mac nor on iOS, when i move the file with Airdrop. |
Ok, for me the reason was, that I was missing a style key: https://developer.apple.com/library/archive/documentation/UserExperience/Reference/PassKit_Bundle/Chapters/TopLevel.html#//apple_ref/doc/uid/TP40012026-CH2-SW1 I just used "generic" and added "auxiliaryFields" key to it. Thanks for this package! :) |
Hi all,
I've been trying to get this working - my project is currently in a state where the pkpass generates but when I try to view it or validate it, it always comes out invalid. I can provide further info but we're sticking pretty closely to the README re setup
Cheers!
The text was updated successfully, but these errors were encountered: