GCM notifies not reaching device having google play service 6.5.99

风流意气都作罢 提交于 2019-12-23 19:00:03

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/32720137/gcm-notifies-not-reaching-device-having-google-play-service-6-5-99

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!