当前位置:网站首页>使用POSTMAN 测试firebase

使用POSTMAN 测试firebase

2022-06-11 08:02:00 _iorilan

使用postman测试google firebase 消息通知
1. url

https://fcm.googleapis.com/fcm/send

2. Header :

Authorization key={your api key}
Content-Type application/json

3. body :

{
 "to" : "{device refresh token}",
 "collapse_key" : "type_a",
 "notification" : {
     "body" : "Body of Your Notification",
     "title": "Title of Your Notification"
 },
 "data" : {
     "body" : "Body of Your Notification in Data",
     "title": "Title of Your Notification in Title",
     "key_1" : "Value for key_1",
     "key_2" : "Value for key_2"
 }
}

 

原网站

版权声明
本文为[_iorilan]所创,转载请带上原文链接,感谢
https://lanliang.blog.csdn.net/article/details/87476723