且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Firebase FCM 推送,出现错误缺少注册 |安卓

更新时间:2023-01-06 14:51:07

我正在使用/尝试使用 Postman Web API 客户端应用程序将 FCM 推送通知发送到 FCM URL:https://fcm.googleapis.com/fcm/send

I was using/trying to send FCM Push notification using Postman web API Client app, to FCM URL: https://fcm.googleapis.com/fcm/send

而且我使用了错误的Content-Type: application/x-www-form-urlencoded,所以我把它改成了

And I had used a wrong Content-Type: application/x-www-form-urlencoded, So I changed it to

Content-Type:  application/json

这基本上是必需的,因为我们将推送通知作为 JSON 有效负载发送.

This is basically required, as we are sending the Push Notification as a JSON Payload.

干杯!