推播測試

 範例:https://youtu.be/NwNSooG4FNA

1、OAuth 2.0 Playground (google.com)

2、輸入https://www.googleapis.com/auth/firebase.messaging


3、選擇你的Firebase帳戶


4、點允許


5、點擊 Exchange authorization...


6、選POST

Request 輸入:https://fcm.googleapis.com/v1/projects/dash-clicker-f4d3e/messages:send

點擊 Enter erquest body


7、貼上下方字串,其中token請看第8點說明

{

"message":{

"token": "",

"notification":{

"body":"This is an FCM notification message",

"title":"FCM Message"

}

}

}


8、token在此取得,程式與必要配置請參閱另外文章


9、點擊 Send the request,APP 就能收到訊息。


留言

熱門文章