透過Postman測試Android接收推播訊息

前言 推播問題多,透過Postman能快速自我驗證,釐清問題 測試步驟 首先請安裝Postman。Postman: a Google chrome extension. Postman設定 Request Type: POST URL: https://android.googleapis.com/gcm/send Header Authorization : key=your key //Google API KEY Content-Type : application/json Body JSON (raw) : 請照自己的發送格式 { "to":"token", "data": { "message" : "Test測試" } } 確認回應訊息,當success的值大於0,表示成功發送幾個