如何在IOS 9中更改firebase推送通知内容?

时间:2017-06-23 12:23:05

标签: swift firebase notifications ios9 push

我已经知道如何使用推送通知服务在IOS 10中执行此操作,但在ios 9中它不受支持。有什么建议吗?

1 个答案:

答案 0 :(得分:0)

检查Rich notification

的有效负载内容
{
"to": "Your_FCM_ID",
"data": {
    "image": "Anyimage URL",
    "mediaType": “JPG”,
    "type": "If_you_have_different_type_of_rich_notification"
},
"notification": {
    "body": "Body",
    "sound": "default",
    "title": "Your_title"
},
"content_available": true,
"mutable_content": true
}

Check this link for the more different type of payload content

Make sure do you have correct format code

Get reference info to implement Rich notification