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
+3
source to share
No one has answered this question yet
See similar questions:
or similar: