GCM通知未到达具有谷歌播放服务6.5.99的设备 [英] GCM notifies not reaching device having google play service 6.5.99
问题描述
-
使用 Master commonsguy GCM客户端代码并尝试GCM通知。
-
如果我升级到最新的GPS apk ie 8.1.15,效果很好。
- GPS lib项目(D:\andySDK\extras\google \google_play_services)版本为7571000.如果我将其设置为6599000,则会出现错误,需要7571000找到6599000
Used Master commonsguy GCM client code and trying GCM notifies.
Works well if i upgrade to latest GPS apk i.e 8.1.15.
Device has inbuild GPS apk version 6599000(6.5.99) and devices fail to receive GCM messages.
int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(applicationContext);
- GPS lib project(D:\andySDK\extras\google\google_play_services) version is 7571000.If i make it to 6599000 i get error need 7571000 found 6599000
$ b $ b
resultCode为2,即 SERVICE_VERSION_UPDATE_REQUIRED
Whatsapp in same devcies( GPS 6.5.99)能够无任何问题地接收GCM。如何制作一个GCM客户端应用程序,它在具有旧GPS的设备中工作?
。在您的情况下,我认为您正在使用需要在设备上安装Google Play服务版本7.5.0+的 GCMNetworkMAnager
。 因此,您可以使用 AlarmManager
,因为从android 1.0开始已经有了
resultCode is 2 which is SERVICE_VERSION_UPDATE_REQUIRED
Whatsapp in the same devcies(GPS 6.5.99) is able to receive the GCM without any issues. How do i make a GCM client app which works in device which has old GPS.?
GCM needs some requirments to work properly. in your case I think you are using GCMNetworkMAnager
which needs Google Play Services version 7.5.0+ installed on the device.
So, you could use AlarmManager
instead, since that's been around since android 1.0
这篇关于GCM通知未到达具有谷歌播放服务6.5.99的设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!