Google Android GCM NotRegistered error

…衆ロ難τιáo~ 提交于 2019-12-19 09:04:04

问题


I am using Android GCM Push service, it works great for some time but inbetween it fails.

Here are the details, If I keep my application Idle for some time then suddenly server is getting response as NotRegistered from Google GCM, strange.

While going through the document it says that sometime Google server can refresh registration id automatically, so this means I need to update my servers whenever Google tells me. Ok I can do that.

Now secondly is there any other chance where I can get NotRegistered error from Google GCM server?

Also in documentation there is setRegisteredOnServer method? So do I also need to call this method with flag as true?

Really dont know what is the exact issue here? Did anybody faced the same problem before?

Anybody will help me out here?


回答1:


Solved.Actually the Reg Id is getting changed automatically and we were not updating it on server on the change.



来源:https://stackoverflow.com/questions/12919668/google-android-gcm-notregistered-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!