GCM适用于android 2.3平台吗? [英] Does GCM works for android 2.3 platform?

查看:73
本文介绍了GCM适用于android 2.3平台吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用GCM创建了一个APP,它可以在Android平台4.1和4.03上正常工作(即获取RegId并在我的服务器中注册,甚至可以接收GCM),但是当我启动模拟器android 2.3(API 10 )然后应用程序得到安装,但永远不会注册IE永远不会得到RegId。当我第一次启动(安装)应用程序时,它收到一条GCM消息,我不明白它来自哪里,但我可以看到该设备未在我的服务器中注册。我还用了一款带有2.3.3安卓软件的HTC手机,同样的结果。任何人都可以看到问题可能是什么?

I have created a APP using GCM which works correctly on Android platform 4.1 and 4.03 (I.e. Gets a RegId and register itself in my server and can even recieve a GCM), but when I start the emulator for android 2.3 (API 10) then the app gets installed but never registered I.E never gets RegId. When I start (install) the application for the first time then it receives a GCM message which I do not understand where it comes from but I can see that the device is not registered in my server. I also used a HTC phone with 2.3.3 android software and stil same result. Can any one see what the problem might be?

推荐答案

在模拟器上它通常不应该工作,因为它不会有与该设备绑定的Google帐户。这是需要一个设备有一个谷歌帐户和谷歌播放安装注册一个ID。

On the emulator it should normally not work, because it will not have a google account tied to the device. It is requiered for a device to have a google account and Google Play installed to register for an id.

手机另一方面应该工作。

The phone on the other hand should work.

这篇关于GCM适用于android 2.3平台吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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