1

我无法配置通用样式的 pkpass 以显示在锁定屏幕上。

我已经阅读了苹果文档,其中解释了相关日期需要一个位置,但在这里我根本没有提供日期。我使用谷歌地图找到了我当前的纬度和经度,但似乎无法让它显示在我的锁定屏幕上。

  {
  "formatVersion" : 1,
  "passTypeIdentifier" : "pass.JetBoarding",
  "serialNumber" : "###############",
  "webServiceURL" : "###############",
  "authenticationToken" : "###############",
  "teamIdentifier" : "###############",
  "locations" : [
    {"latitude" : 47.627231, "longitude" : -122.326306, "relevantText" : "I am here" }
  ],
  "barcode" : {
    "message" : "TESTTESET",
    "format" : "PKBarcodeFormatQR",
    "messageEncoding" : "iso-8859-1"
  },
  "organizationName" : "TESTER",
  "description" : "TEST PASS",
  "foregroundColor" : "rgb(233, 198, 0)",
  "backgroundColor" : "rgb(45, 86, 147)",
  "labelColor" : "rgb(233, 198, 0)",
  "generic" : {
    "primaryFields" : [
      {
        "key" : "passenger",
        "label" : "PASSENGER",
        "value" : "Tommyboy "
      },
    ],
    "secondaryFields" : [
      {
        "key" : "membernumber",
        "label" : "MEMBER #",
        "value" : "0001"
      },
      {
        "key" : "designation",
        "label" : "DESIGNATION",
        "value" : "Founder"
      },      
      {
        "key" : "emoji",
        "label" : "EMOJI",
        "value" : ""
      }       
    ],     
    "auxiliaryFields" : [
      {
        "label" : "name",
        "key" : "NAME",
        "value" :  "Tom",
      },
      {
        "label" : "membersince",
        "key" : "MEMBER SINCE",
        "value" : "03/2017",
      }
    ],
    "backFields" : [
      {
        "key" : "welcomeback",
        "label" : "‍✈️ WELCOME ABOARD ‍✈️",
        "value" : "###############"
      },
      {
        "key" : "residence",
        "label" : " BOARDING PASS ",
        "value" : "###############"
      },
          {
        "key" : "contact",
        "label" : " CONTACT ",
        "value" : "###############",
      }
    ]
  }
}
4

1 回答 1

0

您必须提供

“最大距离”:500

于 2020-05-25T11:31:25.853 回答