2013-12-18 63 views
1

我想推送通知發送到Android設備,但每一次我得到了錯誤以下錯誤Android的推送通知MismatchSenderId錯誤

{ 
    "multicast_id": "xxxxxxxxxxxxxxxxxxx", 
    "success": 0, 
    "failure": 1, 
    "canonical_ids": 0, 
    "results": [ 
     { 
      "error": "MismatchSenderId" 
     } 
    ] 
} 

我也卸載/我的設備上安裝應用程序很多次,但它不爲我工作。

謝謝

回答

0

仔細檢查發件人ID和API_KEY,它們必須匹配,否則你會得到MismatchSenderId錯誤。在Google API控制檯中,查看項目的URL:

https://code.google.com/apis/console/#project:xxxxxxxxxxx 

xxxxxxxxx是項目ID,它是發件人ID。