1.0.1 • Published 2 years ago
check-play-services v1.0.1
Check Play Services
This plugin relies on the isGooglePlayServicesAvailable
method of the native GoogleApiAvailability
helper class.
Maintainers
Maintainer | GitHub | Social |
---|---|---|
Tim | timmedia | @t8tv |
Installation
npm install check-play-services
npx cap sync
Usage
import { CheckPlayServices } from 'check-play-services';
const { status } = await CheckPlayServices.getAvailability();
const { available } = await CheckPlayServices.isAvailable();
API
getAvailability()
getAvailability() => Promise<{ status: AvailabilityStatus; }>
Checks whether Google Play services are available, returns the status code.
Returns: Promise<{ status: AvailabilityStatus; }>
Since: 1.0.0
isAvailable()
isAvailable() => Promise<{ available: boolean; }>
Check that Google Play services are enabled.
Returns: Promise<{ available: boolean; }>
Since: 1.0.0
Enums
AvailabilityStatus
Members | Value |
---|---|
SUCCESS | 0 |
SERVICE_MISSING | 1 |
SERVICE_UPDATING | 18 |
SERVICE_VERSION_UPDATE_REQUIRED | 2 |
SERVICE_DISABLED | 3 |
SERVICE_INVALID | 9 |