-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GoogleApiManager$GooglePlayServicesMissingException - Google play services not available #2783
Comments
@shobhitagarwal1612 Is it the correct behaviour or should we close the app or something in such scenario? |
ground-android/ground/src/main/java/com/google/android/ground/ui/startup/StartupFragment.kt Line 57 in 85d53fc
We already handle this exception here. |
Should we close this issue? |
This crash has occurred 15 times in prod on v0.1.11. Prioritizing as P1. |
Let's show a more meaningful error message and exit instead of crashing. |
Agreed to show an error message on the UI and exit, and log in debug. @jo-spek can check the translations |
@kenstershiro Unfortunately, Play services doesn't always report success or failure states correctly. In rare cases when we know we can't recover by asking the user to enable/install Play services, we can show an error. In other's we'll have to wait until the Play services are installed. Currently, we show the "Initializing..." spinner while that's happened. Perhaps we should add a distinct message for this case, e.g. "Waiting for Play services...". Wdyt? |
@anandwana001 The easy way to solve this would be to split the init method in |
Not sure the different message adds much value to the user, but if it's a simple change I'd agree. |
In some cases, the OS never lets the app know the installation of Google Play services fails, causing the app to get stuck showing "Initializing..." In those cases, the user doesn't know they can recover by installing Play services; showing the "Waiting for Play services..." will give them some indication of what the app is waiting for. When Play services is already installed, we can avoid showing the new "Waiting" dialog altogether. @anandwana001 |
The following fix in #2920 doesn't work as intended: ground-android/ground/src/main/java/com/google/android/ground/ui/startup/StartupFragment.kt Lines 50 to 60 in 9ef90ad
Instead, we should make sure the flow is correct when the user returns to the app. |
@kenstershiro @anandwana001 While debugging I realized we don't actually need this extra message, since when the user returns to the app from installing Play services, the init flow will happen again, which will in turn either pass directly to the sign in screen, or re-display the "install Play services" dialog. In that case the "Waiting for Play services.." progress spinner would never be shown. |
GoogleApiManager.installGooglePlayServices
com.google.android.ground.system.GoogleApiManager$GooglePlayServicesMissingException - Google play services not available
The text was updated successfully, but these errors were encountered: