苹果钱包通过不显示通知消息
我为苹果钱包创build了一个eventTicket通行证。 所有工作正常,通过添加到电子钱包,设备注册,我能够推送通知,并成功地更新通行证。 唯一的问题是,它没有显示更改消息,也没有将通知添加到通知中心。
这是pass pass.json的一个例子:
第一关发送
{ "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" } ] } }
更新通行证
{ "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" } ] } }
我错过了什么?