谷歌Android GCM NotRegistered错误 [英] Google Android GCM NotRegistered error

查看:335
本文介绍了谷歌Android GCM NotRegistered错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Android的GCM推送服务,它的伟大工程一段时间,但其间它失败。

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

下面是详细内容,
如果我把我的应用程序闲置了一段时间后,突然服务器正从谷歌GCM响应,NotRegistered,怪怪的。

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.

整个文档时,将它说,有时谷歌服务器可以自动刷新注册ID,所以这意味着我需要更新我的服务器,只要谷歌告诉我。好吧,我能做到这一点。

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.

现在其次还有没有其他的机会,在那里我可以从谷歌GCM服务器获取NotRegistered错误?

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

此外,在文档有setRegisteredOnServer的方法?所以,做我还需要调用此方法具有标志作为真的吗?

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?

推荐答案

Solved.Actually的注册ID是自动得到改变,我们并没有在变化更新它的服务器。

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

这篇关于谷歌Android GCM NotRegistered错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆