【问题标题】:How do I change firebase push notifications content in IOS 9?如何更改 IOS 9 中的 Firebase 推送通知内容?
【发布时间】:2017-06-23 12:23:05
【问题描述】:

我已经知道如何在 IOS 10 中使用推送通知服务来实现,但在 ios 9 中不支持。有什么建议吗?

【问题讨论】:

    标签: swift firebase notifications ios9 push


    【解决方案1】:

    检查我的有效载荷内容以获取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

    【讨论】:

      猜你喜欢
      • 2018-06-26
      • 1970-01-01
      • 2017-05-24
      • 2018-06-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-06
      相关资源
      最近更新 更多