![](/img/trans.png)
[英]Not able to connect to GCM server in iOS app after switching google developer account
[英]iOS GCM Fails to connect after some time
我已經在我的應用程序中實現了Google Cloud Messaging。 該應用程序注冊沒有問題。 但是一兩天后,它無法再連接到Google的MSC。 該應用程序使用Dev Provisioning Certificate並與kGGLInstanceIDAPNSServerTypeSandboxOption:true
一起運行。
我添加了調試標志-GMRDebugEnabled
。 它說我的鑰匙串中缺少身份驗證憑據。
GCM | No cached checkin auth credentials in Keychain.
GCM | Cannot find checkin plist contents.
GCM | No cached checkin auth credentials in Keychain.
GCM | Cannot find checkin plist contents.
GCM | GCM registration is not ready with auth credentials
GCM | No cached checkin auth credentials in Keychain.
GCM | Cannot find checkin plist contents.
GCM | Failed to connect to MCS. No deviceID and secret found.
GCM | Did start network rechability notifications
連接處理程序隨附的錯誤對象為空。
Domain=com.google.gcm Code=501 "(null)"
另外,由於我嘗試通過移動網絡進行連接,因此這也不應該是網絡問題。 有人知道為什么會這樣嗎?
這是來自Google文檔的內部錯誤。
500-599范圍內的錯誤(例如500或503)表示GCM連接服務器在嘗試處理請求時出現內部錯誤,或者該服務器暫時不可用(例如,由於超時)。 發件人必須稍后重試,使用響應中包括的所有Retry-After標頭。 應用程序服務器必須實現指數補償。
嘗試刷新您的注冊令牌,看看它是否有效。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.