Firebase通知请求各种

有一种方法可以发送firebase通知请求,各种各样的</ p>

  header:
Content-Type:application / json
Authorization:key =

Body:
{“data”:
{
“title”:“Firebase notification”,
“detail” : “我火力通知您可以自定义我欣赏。”
}
“来”: “c_ejgKg_0rY:APA91bEtp77PP99UuDvza1gKOKAmfqVg3ZHflWYQUGPQJFCvWy3Ortswv45MjtT8LQaRoebLqSXPTeaO21hm7QVnG694GgVmALbK5LIDAsyohKlTFlQSlwcdYQmPS5GnLGjLwfA3b34z”,
“声音”: “默认”
}
</代码> </ 前>

这里有一个请求的例子,请帮帮我,谢谢</ p>
</ div>

展开原文

原文

There is a way to send in a firebase notidication request, various to

header:
Content-Type: application/json
Authorization: key=

Body:
{ "data":
{
"title": "Firebase notification",
"detail": "I am firebase notification. you can customise me. enjoy"
},
"to" : "c_ejgKg_0rY:APA91bEtp77PP99UuDvza1gKOKAmfqVg3ZHflWYQUGPQJFCvWy3Ortswv45MjtT8LQaRoebLqSXPTeaO21hm7QVnG694GgVmALbK5LIDAsyohKlTFlQSlwcdYQmPS5GnLGjLwfA3b34z",
"sound":"default"
}

here an example of the request, please help me, thank you

1个回答



使用 registration_ids </ code>代替...... </ p>

</ p>

Firebase云消息传递HTTP协议| Firebase </ p>

  header:
Content-Type:application / json
Authorization:key =

Body:
{
“data”:
{
“称号”: “火力地堡的通知”,
“细节”: “我是火力通知您可以自定义我欣赏。”
}
“registration_ids”:
“个c_ejgKg_0rY:APA91bEtp77PP99UuDvza1gKOKAmfqVg3ZHflWYQUGPQJFCvWy3Ortswv45MjtT8LQaRoebLqSXPTeaO21hm7QVnG694GgVmALbK5LIDAsyohKlTFlQSlwcdYQmPS5GnLGjLwfA3b34z” \ n],
“声音”:“默认”
}
</ code> </ pre>
</ div>

展开原文

原文

Use registration_ids instead...

FCM Documentation

Firebase Cloud Messaging HTTP protocol | Firebase

header:
Content-Type: application/json
Authorization: key =

Body:
{
    "data":
    {
        "title": "Firebase notification",
        "detail": "I am firebase notification. you can customise me. enjoy"
    },
    "registration_ids" : [ 
        "c_ejgKg_0rY:APA91bEtp77PP99UuDvza1gKOKAmfqVg3ZHflWYQUGPQJFCvWy3Ortswv45MjtT8LQaRoebLqSXPTeaO21hm7QVnG694GgVmALbK5LIDAsyohKlTFlQSlwcdYQmPS5GnLGjLwfA3b34z"
    ],
    "sound":"default"
}

douwuying4709
douwuying4709 谢谢,帮帮我
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐