Sending Push via Postman using Firebase Messaging

后端 未结 11 1224
-上瘾入骨i
-上瘾入骨i 2020-12-02 20:25

I\'m trying to use Postman to send a single Push Notification using Firebase Cloud Messaging service.

This is a working cURL command for th

11条回答
  •  渐次进展
    2020-12-02 20:55

    Posting FCM through POSTMAN

    Body - to is token id (should be generated through instance token) write body in raw binary application/json

    {
       "to": "cpa8cZPjq-w:APA91bF122f1Rnhu9v47bL
       YMajaNTHAIU5SzItDwTy9o2MCIveG0PlK78VPvp3d
       CqjwnUKZ4
       ngi1trSyM3_aXttW62iknFfbPGtjRLhZr6wq-3qFdboz8gzdOGPz**********",
    
       "notification": {
    
        "body": "Hello",
        "title": "This is test message."
       }
       }
    

    header: should have authorization :server key

    Content type : application/json after posting here the success message:

提交回复
热议问题