1.2.3 • Published 9 months ago

@timmedia/check-play-services v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Check Play Services

This plugin relies on the isGooglePlayServicesAvailable method of the native GoogleApiAvailability helper class and can be used to check whether Google Play services are available on the device (e.g. before attempting Google native authentication).

Maintainers

MaintainerGitHub
Timtimmedia

Installation

npm install @timmedia/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

MembersValue
SUCCESS0
SERVICE_MISSING1
SERVICE_UPDATING18
SERVICE_VERSION_UPDATE_REQUIRED2
SERVICE_DISABLED3
SERVICE_INVALID9
1.2.3

9 months ago

1.2.2

9 months ago

1.2.1

9 months ago

1.2.0

9 months ago

1.1.1

9 months ago

1.1.0

9 months ago