我无法配置一个通用样式的pkpass在锁屏上显示。
我读了苹果的文档,其中解释说,相关的日期需要一个位置,但在这里,我没有提供一个日期在所有。我已经使用谷歌地图找到我当前的Lat和Long,但不能得到似乎得到它显示在我的锁屏。
{
"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" : "###############",
}
]
}
}
你必须提供
"最大距离"。500