Closed devilb0x closed 2 years ago
In order to get more information from the iPhone logs, you can enable debug logging from the developer settings on your iPhone.
Typically when a pass doesn't open it's related to the certificates being invalid or missing keys/duplicate keys.
My pkpassvalidator is not comprehensive, so there are lots of things it's doesn't check.
Enable the debug logging and try again. I don't have access to a Mac at present, but if you send me the pass that isn't working, I can have a look next week.
Hi, I'm just following up on this - could you send me the pass that is failing please?
Sorry for the late reply. We managed to get this working. It was my fault, I failed to see that the MIME type was actually being set to application/vnd.apple.pkpasses
instead of application/vnd.apple.pkpass
. Thanks for your help.
Marvelous
Passes generated with this tool can't be opened with Safari Mobile, but can be opened on a Mac laptop. Logs obtained from XCode don't show anything useful.
Passes created with
@walletpass/pass-js
work just fine. Both coupons pass all checks in the pkpass validator. https://pkpassvalidator.azurewebsites.net/This is the pass.json generated with this tool. This coupon doesn't open.
This is the pass.json generated with the pass-js library. This downloads and opens in Mobile Safari.
Here is the code I'm using to generate the pass.
Any help would be very much appreciated.