Can't open .pkpass file in iOS device
See original GitHub issueI had generate a pkpass file by using the sample code.
However, the pkpass only could open in macOS.
When I using mail to send the file to my iPhone, it can’t be opened in iPhone.
And I had used the Xcode to see the simulator log.
But it only gives me the following error code:
Passbook[1602]: assertion failed: 17G9016 16A366: libxpc.dylib + 79599 [28B7F54A-6A8C-33A0-BA46-FFA5278B041E]: 0x7d
And I had used the tool that apple provide from this document:
https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/PassKit_PG/YourFirst.html#//apple_ref/doc/uid/TP40012195-CH2-SW1
But it seems not work for me.
Is there anything I had lost?
The following is my Json:
{ "formatVersion":1, "serialNumber":"123456781200", "passTypeIdentifier":"pass.com.demo123.demo", "authenticationToken":"Y9ULN74QULDAC7PF", "description":"some description", "teamIdentifier":"TEAMID1234568", "organizationName":"your org", "barcodes":[ { "format":"PKBarcodeFormatCode128", "altText":"988765433210", "message":"123456789", "messageEncoding":"ISO-8859-1" } ], "coupon":{ "headerFields":[ { "key":"22222", "label":"Balance", "value":300, "currencyCode":"USD" } ], "primaryFields":[ { "key":"mykey", "label":"INSTRUCTIONS", "value":"Mutiple use with balance", "attributedValue":1000 } ], "auxiliaryFields":[ { "key":"1111111", "label":"Label For AuxiliaryFields", "value":"Value For AuxiliaryFields" } ], "backFields":[ { "key":"key123", "label":"Description", "value":"Giftcard" }, { "key":"key1243", "label":"T & C", "value":"TC" }, { "key":"key1234", "label":"Phone No.", "value":"3256789900865" }, { "key":"key1236", "label":"Website", "value":"https://www.google.com/" } ] }, "sharingProhibited":false }
It seems likely to this issue: https://github.com/drallgood/jpasskit/issues/3 But it seems not work for me.
And is there any sample code for implementing IPKRestletServerResourceFactory?
Thanks for the help.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (2 by maintainers)
Solve it. After I downloaded from this link, the certification is work.
But I still want to know is there any sample to implement
IPKRestletServerResourceFactory
. Big thanks.Hi @monkeyooo , could you please help me? I am facing same issue. It’s working only in the mac for my iOS Developer and files are correct. I have added .p12 file and .cer file which the developer sent me.