Processing Google Play Service Update Message

I use googleservices in my application, version 8.3. However, when I downloaded my application on my old device (LG II Optimus), it showed me the following message

This application will not start unless you update Google Play Services

I accepted and updated google services and then was able to use my application. However, I wonder what if the user does not want to update their current Google Play services on their device? How can I handle this? What is the recommended approach?

What is the lowest version of google game services offered, or does anyone know what a version of google play is, or how can I find it?

+4
source share
1 answer

How can I do it?

Your application should simply refuse to start if there are no necessary Google Play services (GPS from now on), since your code may use material that is not in the outdated, outdated version of GPS, in most cases the application will crash.

What causes the update dialog is the version mismatch between the Google Play services installed on the device and the GPS version with which you are creating the application. This version is stored in your manifest file:

<meta-data
    android:name="com.google.android.gms.version"
    android:value="@integer/google_play_services_version" />

My personal experience indicates the right approach to resistance when updating GPS, as soon as the update appears in the SDK manager, and (if you are not sure that you want it), it is reasonable to resist at least for a couple of weeks (or maybe even completely avoid if you do not need new features, etc.).

, , - . , SDK GPS , , GPS-SDK Google, Play Store ( ). ( "" - ) , , Google Play Service (- , ..). "Hej, upgrade GTFO". . , ...

google - , Google google play, ?

, , .

+3

Source: https://habr.com/ru/post/1624810/


All Articles