【问题标题】:Custom iOS Push with node-pushserver使用 node-pushserver 自定义 iOS 推送
【发布时间】:2015-02-10 05:44:40
【问题描述】:

我正在尝试使用 node-pushserver 库插入自定义 iOS 推送通知...

我想要的格式是:

"aps": {
        "alert": "joetheman",
        "sound": "default"
    },
    "message": "Some custom message for your app",
    "id": 1234

我的格式:

 "ios": {
                "badge": 0,
                "alert": message.message,
                "sound": "soundName"  
              }

我该怎么做?

【问题讨论】:

  • 我也有同样的问题..

标签: node.js push-notification apple-push-notifications


【解决方案1】:
"ios": {
                "badge": 0,
                "alert": message.message,
                "sound": "soundName",
                "payload" : {
                     "message": "Some custom message for your app",
                     "id": 1234
                }
        }

【讨论】:

    猜你喜欢
    • 2020-02-13
    • 1970-01-01
    • 2013-03-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-09-16
    相关资源
    最近更新 更多