[英]Android push notification Urban AirShip error : invalid authorization on platform GCM
我正在使用Urban Airship,而我的推送在iOS上運行正常,但在Android上卻出現錯誤。
在城市飛艇網站上的錯誤控制台中,我收到以下消息:
Received push with invalid authorization on platform GCM
我的設備正確顯示在APID部分中,並且我驗證了該地址中的所有步驟: https : //support.urbanairship.com/customer/portal/articles/823114-gcm-troubleshooting-guide 。
這段代碼正確顯示了APID:
PushManager.shared().getAPID()
我的財產似乎不錯,我驗證了:
gcmSender = 123456789122
transport = gcm
developmentAppKey = APP KEY taken on the urban airship site
developmentAppSecret = APP KEY Secret taken on the urban airship site
inProduction = false
我還在城市飛艇站點上驗證了我的GCM,並從cloud.google.com上輸入了正確的Api密鑰和Package。
有什么我忘了嗎?
幾件事你需要在這里檢查
大多數情況下,第2點是問題,還要檢查是否在鍵上添加引號,如果是,則添加不帶引號的鍵
希望以下鏈接對您有所幫助。
注意:我們應該選擇服務器密鑰。 如果我們選擇其他任何方式進行推送通知,我們將陷入此錯誤。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.