问题
I created an eventTicket pass for apple wallet. All working fine, passes added to Wallet, devices are register and I am able to push notification and update the passes successfully. The only problem I've got it's not showing the change message neither adding the notification to the Notification Center.
This are an example of the passes pass.json:
First pass sent
{
"formatVersion" : 1,
"passTypeIdentifier": "pass.code.paq.test",
"serialNumber": "14",
"teamIdentifier": "TE4545WNZ9",
"webServiceURL": "https://testdomain/applewallet/deviceservice/",
"authenticationToken": "2344e35c-c348-345c-945b-32bce234bc12",
"organizationName" : "Test"
"description" : "testpass",
"foregroundColor" : "rgb(255, 255, 255)",
"eventTicket": {
"primaryFields": [
{
"key": "member",
"label": "MEMBER NAME",
"value": "John Smith"
}
],
"secondaryFields": [
{
"key": "level",
"label": "LEVEL",
"value": "Black",
"changeMessage": "Your Level just change to %@"
}
],
"auxiliaryFields": [
{
"key": "membershipNumber",
"label": "NUMBER",
"value": "3324234234234234"
},
{
"key": "memberSince",
"label": "MEMBER SINCE",
"value": "2016-08-22"
}
]
}
}
Updated pass
{
"formatVersion" : 1,
"passTypeIdentifier": "pass.code.paq.test",
"serialNumber": "14",
"teamIdentifier": "TE4545WNZ9",
"webServiceURL": "https://testdomain/applewallet/deviceservice/",
"authenticationToken": "2344e35c-c348-345c-945b-32bce234bc12",
"organizationName" : "Test"
"description" : "testpass",
"foregroundColor" : "rgb(255, 255, 255)",
"eventTicket": {
"primaryFields": [
{
"key": "member",
"label": "MEMBER NAME",
"value": "John Smith"
}
],
"secondaryFields": [
{
"key": "level",
"label": "LEVEL",
"value": "Blue",
"changeMessage": "Your Level just change to %@"
}
],
"auxiliaryFields": [
{
"key": "membershipNumber",
"label": "NUMBER",
"value": "3324234234234234"
},
{
"key": "memberSince",
"label": "MEMBER SINCE",
"value": "2016-08-22"
}
]
}
}
Am I missing something??
来源:https://stackoverflow.com/questions/39121837/apple-wallet-pass-not-shown-notification-message