0
我在火力新希望显示在通过火力云消息,但问题的浏览器通知使用火力云消息是,我搞不清在哪里写的代码::如何通过网络
POST /fcm/send HTTP/1.1
Host: fcm.googleapis.com
Content-Type: application/json
Authorization: key=YOUR_SERVER_KEY
{
"notification": {
"title": "New chat message!",
"body": "There is a new message in FriendlyChat",
"icon": "/images/profile_placeholder.png",
"click_action": "http://localhost:5000"
},
"to":"YOUR_DEVICE_TOKEN"
}
请告诉我在哪个文件中,我将不得不写这个代码。
任何帮助将不胜感激。