devartis / passbook

Python library to create Apple Passbook (.pkpass) files
http://www.devartis.com/
MIT License
272 stars 108 forks source link

pkpass does not open on the watch #61

Open rawmean opened 2 years ago

rawmean commented 2 years ago

The pkpass fie open fine on iPhone and can be added to the Wallet on iPhone, but it cannot be added to the Apple Watch. Specifically, I sent the pkpass file by text to myself. On the watch, tapping on the pkpass file does not add it to the Wallet on the Watch. I am able to add the pkpass file generated by other apps to my watch Am I doing something wrong?

Json file is here:

    •   {
    •     "description": "Garb",
    •     "formatVersion": 1,
    •     "organizationName": "Garb",
    •     "passTypeIdentifier": "pass.company.appname",
    •     "serialNumber": "Membership CardGarb",
    •     "teamIdentifier": "87XUXXLX5B",
    •     "suppressStripShine": false,
    ◦     "storeCard": {
    ▪       "primaryFields": [
    ▪         {
    ▪           "key": "name",
    ▪           "value": "Garb",
    ▪           "label": "Membership Card",
    ▪           "changeMessage": "",
    ▪           "textAlignment": "PKTextAlignmentLeft"
    ▪         }
    ◦       ],
    ▪       "secondaryFields": [
    ▪         {
    ▪           "key": "customer_id",
    ▪           "value": "1234",
    ▪           "label": "Member ID",
    ▪           "changeMessage": "",
    ▪           "textAlignment": "PKTextAlignmentLeft"
    ▪         }
    ◦       ]
    •     },
    ◦     "barcodes": [
    ▪       {
    ▪         "format": "PKBarcodeFormatQR",
    ▪         "message": "1234",
    ▪         "messageEncoding": "utf-8"
    ◦       }
    •     ],
    ◦     "barcode": {
    ◦       "format": "PKBarcodeFormatQR",
    ◦       "message": "1234",
    ◦       "messageEncoding": "utf-8"
    •     },
    •     "backgroundColor": "rgb(72, 93, 133)",
    •     "foregroundColor": "rgb(255, 255, 255)",
    •     "logoText": "Garb"
}
Sharpienero commented 11 months ago

You can't open a pkpass on a wallet, only on a phone. Open on phone, add to wallet, and it will sync to the watch.