簡易記錄一下如何透過Postman來測試驗證Android推播訊息
推播問題多,透過Postman能快速自我驗證,釐清問題
- 首先請安裝Postman。Postman: a Google chrome extension.
- Postman設定 Request Type:POST
- 確認回應訊息,當success的值大於0,表示成功發送幾個
URL:https://android.googleapis.com/gcm/send
Header
Authorization : key=your key //Google API KEY
Content-Type : application/json

JSON (raw) : 請照自己的發送格式
{
"to":"token",
"data": {
"message" : "Test測試"
}
}


閱讀全文...