Firebase FCM push, getting Error Missing Registration | Android

前端 未结 3 849
忘了有多久
忘了有多久 2021-01-05 12:06

I have seen this topic discussed before, but I think it\'s not the same scenario.

I\'m trying to send push notification from one device (going to be an admin device)

3条回答
  •  执笔经年
    2021-01-05 12:33

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

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

    Content-Type:  application/json
    

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

    Cheers!

提交回复
热议问题