问题
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);
resultCode is 2 which is SERVICE_VERSION_UPDATE_REQUIRED
- 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