What Bearer token should I be using for Firebase Cloud Messaging testing?

前端 未结 5 681
半阙折子戏
半阙折子戏 2020-12-29 06:45

I am trying to send a test notification using Firebase Cloud Messaging via Postman. I\'m doing a POST to this url

https://fcm.googleapis.com/v1/projects/[my         


        
5条回答
  •  北荒
    北荒 (楼主)
    2020-12-29 07:34

    To generate an for testing push notification, you can use Google Developers OAuth 2.0 Playground

    You can even send a test Push Notification using Google Developers OAuth 2.0 Playground itself. Or if you want can use Postman / Terminal (curl command) as well.

    Please find the detailed steps here, which I wrote.

    Note : Instead of "Project name" in the Endpoint, you have to use "Project ID". Steps for getting the Project ID is also mentioned in the above link.

提交回复
热议问题