GCM通知未到达具有谷歌播放服务6.5.99的设备 [英] GCM notifies not reaching device having google play service 6.5.99

查看:125
本文介绍了GCM通知未到达具有谷歌播放服务6.5.99的设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


  1. 使用 Master commonsguy GCM客户端代码并尝试GCM通知。

  2. 如果我升级到最新的GPS apk ie 8.1.15,效果很好。



  3. $ b $ b

    resultCode为2,即 SERVICE_VERSION_UPDATE_REQUIRED


    1. GPS lib项目(D:\andySDK\extras\google \google_play_services)版本为7571000.如果我将其设置为6599000,则会出现错误,需要7571000找到6599000

    Whatsapp in same devcies( GPS 6.5.99)能够无任何问题地接收GCM。如何制作一个GCM客户端应用程序,它在具有旧GPS的设备中工作?

    。在您的情况下,我认为您正在使用需要在设备上安装Google Play服务版本7.5.0+的 GCMNetworkMAnager

    因此,您可以使用 AlarmManager ,因为从android 1.0开始已经有了

    1. Used Master commonsguy GCM client code and trying GCM notifies.

    2. Works well if i upgrade to latest GPS apk i.e 8.1.15.

    3. Device has inbuild GPS apk version 6599000(6.5.99) and devices fail to receive GCM messages.

    4. int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(applicationContext);

    resultCode is 2 which is SERVICE_VERSION_UPDATE_REQUIRED

    1. 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

    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屋!

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