这种通知ios 只有打开才能收到消息

Smeb
2017-11-08 09:14 1.4k 0
{
    "platform": {
        "all": true,
        "audience": [
            "IOS",
            "Android"
        ]
    },
    "audience": {
        "all": true
    },
    "notification": {
        "ios": {
            "sound": "test.m4r",
            "alert": "极111",
            "extras": {
                "from": "JPush"
            },
            "type": "cn.jpush.api.push.model.notification.IosNotification"
        },
        "android": {
            "alert": "极光31231推送",
            "title": "您有一个新任务请查看",

            "extras": {


                "sound": "test.mp3"
            },
            "type": "cn.jpush.api.push.model.notification.AndroidNotification"
        }
    },
    "message": {
        "msgContent": "您有一个新任务请查收",
        "extras": {
            "sound": "test.mp3"
        },
        "alert": "极光推送",
        "title": "您有一个新任务请查看"
    }
}

1个回答

热门排序
  • 1、正确收到通知notification在后台可以接收展示,关于notification,API推送消息给iOS,需要指定推送的环境!请让后台修改apns_production,false是开发,true是生产。关于测试两种环境的说明: h 展示全部