我尝试向Postbase发送通知frpom Postman
{
"message":{
"token" : "AAAAelYayDs:AP....",
"notification" : {
"body" : "This is an FCM notification message!",
"title" : "FCM Message"
}
}
}
但我得到的是文字回复,只是 - to
我读到to
- 它是DEVICE_ID。但是我得到这个身份证?如果我想向所有设备发送消息怎么办?
答案 0 :(得分:0)
错误消息似乎暗示您要发布到https://fcm.googleapis.com/fcm/send
,这是expects messages to have a to
property的旧版FCM端点。
新的token
属性仅由https://fcm.googleapis.com/v1/projects/myproject-b5ae1/messages:send HTTP/1.1
端点接受。