谷歌云消息,不提供服务 [英] Google cloud messaging, service not available

查看:133
本文介绍了谷歌云消息,不提供服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建一个应用程序,我使用GCM接收通知,问题是,当我调用函数gcm.register(SENDER_ID);我得到服务不可用。 我搜索了很多,许多人面临这个问题, 我想这个解决方案:

i'm creating an application and i'm using GCM to receive notifications, the problem is that when i call the function " gcm.register(SENDER_ID);" i'm getting "service not available". i searched a lot and many are facing this problem, i tried this solution:

<一个href="http://stackoverflow.com/questions/17618982/gcm-service-not-available-on-android-2-2/17721385#17721385">GCM SERVICE_NOT_AVAILABLE在Android 2.2

但它不工作,(REGID为null) 请任何一个能帮助?

but it is not working,(regId is null) please any one can help?

推荐答案

该文件说:

当应用程序接收   与错误com.google.android.c2dm.intent.REGISTRATION意图   额外的设置为SERVICE_NOT_AVAILABLE,它应该重试失败   操作(注册或注销)。

When the application receives a com.google.android.c2dm.intent.REGISTRATION intent with the error extra set as SERVICE_NOT_AVAILABLE, it should retry the failed operation (register or unregister).

与其他词,注册失败GCM服务器上,你应该再重试操作。

with other words, the registration failed on GCM servers and you should retry the operation again.

请确保您有谷歌播放安装在设备上的服务,你是在一个稳定的互联网连接。

Make sure that you have Google Play Services installed on the device, and that you are on a stable internet connection.

这篇关于谷歌云消息,不提供服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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