Always get google play service update message by checking google play service in launcher app

I have an app that has google cloud messaging functionality so I am using the latest google service and since the development tool is android studio so I get the code for gcm from android developer site http://developer.android.com /google/gcm/client.html and then I was checking available google play services or not when starting the app

 public boolean checkPlayServices(Activity activity) {
    int resultCode = GooglePlayServicesUtil.isGooglePlayServicesAvailable(context);
    if (resultCode != ConnectionResult.SUCCESS) {
        if (GooglePlayServicesUtil.isUserRecoverableError(resultCode)) {
            GooglePlayServicesUtil.getErrorDialog(resultCode, activity,
                    PLAY_SERVICES_RESOLUTION_REQUEST).show();
        } else {
            activity.finish();
        }
        return false;
    }
    return true;
}

      

but it always returns this message "This app won't start unless you update google play services enter image description here

+3
android google-cloud-messaging


source to share


No one has answered this question yet

See similar questions:

nineteen
Google Play Services version 5.2.08 is too recent for my device

or similar:

620
How do I install Google Play services in a Genymotion VM (no drag and drop support)?
309
LogCat Message: No Google Play Services Resources Found. Check your project configuration to make sure resources are enabled.
22
Android Google Cloud Messaging (GCM) token crash after update related to Firebase for Google Play Services
fourteen
Google Cloud Messaging for Android Library and Google Play Services
8
Minimum version of Google Play Services for Push Notification
6
Enable GCM for an app when uploading to the Google Play Store
4
Google Play services are outdated. Required 5089000, but found 3136130
3
Two ways to register and start a service in Google Cloud Messaging (GCM)
0
Google Cloud Messaging Error Service not available
0
Is Google Play Neccessary Service Update for GCM



All Articles
Loading...
X
Show
Funny
Dev
Pics