Skip to content

Commit e5ee66b

Browse files
authored
docs(app, utils): fix checkPlayServicesExample (#4936)
1 parent bff9dec commit e5ee66b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/app/utils.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,19 +69,19 @@ async function checkPlayServicesExample() {
6969
// SERVICE_MISSING - Google Play services is missing on this device.
7070
// show something to user
7171
// and then attempt to install if necessary
72-
return utils.makePlayServicesAvailable();
72+
return utils().makePlayServicesAvailable();
7373
case 2:
7474
// SERVICE_VERSION_UPDATE_REQUIRED - The installed version of Google Play services is out of date.
7575
// show something to user
7676
// and then attempt to update if necessary
77-
return utils.resolutionForPlayServices();
77+
return utils().resolutionForPlayServices();
7878

7979
default:
8080
// some default dialog / component?
8181
// use the link below to tailor response to status codes to suit your use case
82-
// https://developers.google.com/android/reference/com/google/android/gms/// common/ConnectionResult#SERVICE_VERSION_UPDATE_REQUIRED
83-
if (isUserResolvableError) return utils.promptForPlayServices();
84-
if (hasResolution) return utils.resolutionForPlayServices();
82+
// https://developers.google.com/android/reference/com/google/android/gms/common/ConnectionResult#SERVICE_VERSION_UPDATE_REQUIRED
83+
if (isUserResolvableError) return utils().promptForPlayServices();
84+
if (hasResolution) return utils().resolutionForPlayServices();
8585
}
8686
}
8787
// There's no way to resolve play services on this device

0 commit comments

Comments
 (0)