我很早就有机会通过Postman测试FCM服务发送请求
https://android.googleapis.com/gcm/send
部首:
"key":"Content-Type","value":"application/json"
"key":"Authorization","value":"key=AIzaSyAA-XXXXXXXXXXXXXXXXXXXX"
体:
{
"registration_ids":["token_id"],
"data": {
"title" : "title",
"message" : "This is something you might be interested in"
}
}
但现在我收到了这样的回复
{
"multicast_id": 6211560223995368844,
"success": 0,
"failure": 1,
"canonical_ids": 0,
"results": [
{
"error": "InvalidRegistration"
}
]
}
有没有人可以帮我解决我的问题。我想发送带有数据有效负载的推送通知而没有通知有效负载(我无法通过Firebase控制台执行此操作,因为它只发送非空通知)