-
-
Notifications
You must be signed in to change notification settings - Fork 45
Play store service check #3258
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
Play store service check #3258
Conversation
| Dialog dialog = googleApiAvailability.getErrorDialog(this, status, PLAY_SERVICES_RESOLUTION_REQUEST, | ||
| dialog1 -> { | ||
| onConfigurationFailure(playServiceError, | ||
| "Google Play Services are required. Please update/install them."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pm-dimagi Please put in Strings.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (dialog != null) { | ||
| dialog.show(); | ||
| } else { | ||
| onConfigurationFailure(googleApiAvailability.getErrorString(status), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pm-dimagi Please put in Strings.xml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| private void checkGooglePlayServices() { | ||
| GoogleApiAvailability googleApiAvailability = GoogleApiAvailability.getInstance(); | ||
| int status = googleApiAvailability.isGooglePlayServicesAvailable(requireActivity()); | ||
| if (status != ConnectionResult.SUCCESS) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pm-dimagi I am also seeing some concept of googleApiAvailability.isUserResolvableError(resultCode) and then showing the dialog error with requestCode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| Logger.log(LogTypes.TYPE_MAINTENANCE,"Google Play Services issue:" + playServiceError); | ||
| Dialog dialog = googleApiAvailability.getErrorDialog(this, status, PLAY_SERVICES_RESOLUTION_REQUEST, | ||
| dialog1 -> { | ||
| onConfigurationFailure(playServiceError, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of string error, pass play_services_$status as the failure code here and below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| if (status != ConnectionResult.SUCCESS) { | ||
| String playServiceError = googleApiAvailability.getErrorString(status); | ||
| Logger.log(LogTypes.TYPE_MAINTENANCE,"Google Play Services issue:" + playServiceError); | ||
| Dialog dialog = googleApiAvailability.getErrorDialog(this, status, PLAY_SERVICES_RESOLUTION_REQUEST, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think this should use this method instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
app/res/values/strings.xml
Outdated
|
|
||
| <string name="my_credentials">My Credentials</string> | ||
| <string name="credential">Credential</string> | ||
| <string name="play_service_update_error">Google Play Services are required. Please update/install them.</string> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
think we can have one general message here - Please make sure Google Play services is supported on the device and is up to date instead of two.
We should also add translations in all languages here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still pending
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Product Description
This is to check if the play store is not updated or missing
Reference doc is here:https://developers.google.com/android/reference/com/google/android/gms/common/GoogleApiAvailability?utm_source=chatgpt.com
Not able to test this as 2 of my device is updated with the service
Technical Summary
Feature Flag
Safety Assurance
Safety story
Automated test coverage
QA Plan
Labels and Review