Apple wallet pass not shown notification message

喜你入骨 提交于 2019-12-12 00:46:12

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!