相关疑难解决方法(0)

FCM with Postman - 请求缺少身份验证密钥(FCM令牌)

在此输入图像描述

//身体就像这样

{
    "to":
    "/topics/NEWS"
    ,
    "data":{
        "extra_information": "This is some extra information"
    },
Run Code Online (Sandbox Code Playgroud)

//我需要提供的通知

"notification":{
            "title": "ChitChat Group",
            "text": "You may have new messages",
            "click_action":"ChatActivity"
        }
    }
Run Code Online (Sandbox Code Playgroud)

firebase postman firebase-cloud-messaging

30
推荐指数
3
解决办法
2万
查看次数

如何使用 Firebase 通知控制台在 APNS 负载中添加 mutable_content?

无法弄清楚如何在 aps 字典中发送 mutable_content=true 。这是我从 firebase 消息控制台发送通知时收到的 json 有效负载

{
    aps =     {
        alert =         {
            body = "50% off on booking ";
            title = "CompanyName 50% coupon ABC50OFF";
        };
        sound = default;
    };
    "attachment-url" = "https://www.xxxxxxxxx.com/campaign/images_thumb/Toyota-Fortuner-AT.jpg";
    "click_action" = reminder;
    "content_available" = 1;
    "gcm.message_id" = "0:1491225835295720%a84b45aaa84b45aa";
    "gcm.n.e" = 1;
    "gcm.notification.sound2" = default;
    "google.c.a.c_id" = 3829383583613273032;
    "google.c.a.e" = 1;
    "google.c.a.ts" = 1491225835;
    "google.c.a.udt" = 0;
    "mutable_content" = 1;
}
Run Code Online (Sandbox Code Playgroud)

ios firebase firebase-cloud-messaging firebase-notifications

4
推荐指数
2
解决办法
4131
查看次数