自定义 iOS 使用 node-pushserver 推送

Custom iOS Push with node-pushserver

我正在尝试使用 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"  
              }

我该怎么做?

"ios": {
                "badge": 0,
                "alert": message.message,
                "sound": "soundName",
                "payload" : {
                     "message": "Some custom message for your app",
                     "id": 1234
                }
        }