Apple wallet relevantDate not able to get notified

63 Views Asked by At

I was trying to get shown up on lock screen in Iphone based on the relevantDate attribute in pass.json, but it was unable to get shown. can someone help me if i miss any anything or any mandatory attribute.

even i tried unpack pkpass and see what pass.json contains its in expected format

before converting to pkpass, json has

"relevantDate" : "2023-09-28T22:00:00+02:00" after conversion it pkpass of pass json has "relevantDate" : "2023-09-28T20:00:00.000Z". i live in utc+2 timezone. so gave that format

{
  "passTypeIdentifier" : "pass.com.xxxxxx.xxxxxxx",  
  "formatVersion" : 1,
  "teamIdentifier" : "xxxxxx",
  "organizationName" : "xxxxxxx Company",
  "relevantText" : "xxxxxxxx",  
  "relevantDate" : "2023-09-28T22:00:00+02:00",
  "description" : "xxxxxxxx",
  "foregroundColor" : "rgb(0, 0, 0)",
  "backgroundColor" : "rgb(255, 255, 255)",
  "labelColor" : "rgb(0, 0, 0)",
  "serialNumber" : "xxxxxx",
  "barcodes" : [{
          "format" : "PKBarcodeFormatQR",
          "message" : "xxxxxxxx",
          "altText" : "xxxxxxxxx"
   }],
  "generic" : {
      "headerFields" : []
      ,
    "primaryFields" : [
      {
        "key" : "customer",
        "label" : "xxxxxxx",
        "value" : "xxxxxxx"
      }
    ],
    "secondaryFields" : [
      {
        "key" : "service",
        "label" : "yyyyyyyy",
        "value" : "yyyyyy",
        "textAlignment":"PKTextAlignmentLeft"
      }
    ],
    "auxiliaryFields" : [
      {
        "key" : "datetime",
        "label" : "Date&Time",
        "value" : "xxxxxxxx",
        "textAlignment": "PKTextAlignmentLeft"
      }
     
    ],
    "backFields" : []
  }
}

Expecting that apple get shows the pass on lock screen when relevantDate is set

0

There are 0 best solutions below