Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cartona/capacitor-google-play-availability
A plugin which allows to check for google play services availability and enabling it
https://github.com/cartona/capacitor-google-play-availability
Last synced: 24 days ago
JSON representation
A plugin which allows to check for google play services availability and enabling it
- Host: GitHub
- URL: https://github.com/cartona/capacitor-google-play-availability
- Owner: cartona
- License: mit
- Created: 2022-11-11T16:06:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-15T14:05:46.000Z (10 months ago)
- Last Synced: 2024-11-04T01:52:02.348Z (about 1 month ago)
- Language: Java
- Size: 245 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-capacitorjs - @cartona/capacitor-google-play-availability - Capacitor plugin to verify that Google Play services is installed and enabled, and request enabling Google Play services on device. (Plugins / Community Plugins)
- awesome-capacitor - Availability - Verifies that Google Play services is installed and enabled, and request enabling Google Play services on device. (Other plugins)
README
# capacitor-google-play-availability
A capacitor plugin which is a wrapper for google play availability api that allows to check for google play services availability and enabling it if it's available
## Install
```bash
npm install capacitor-google-play-availability
npx cap sync
```## API
* [`isGooglePlayServicesAvailable()`](#isgoogleplayservicesavailable)
* [`makeGooglePlayServicesAvailable()`](#makegoogleplayservicesavailable)### isGooglePlayServicesAvailable()
```typescript
isGooglePlayServicesAvailable() => Promise<{ available: boolean; }>
```Retrieve google play services availability status
**Returns:**
Promise<{ available: boolean; }>
--------------------
### makeGooglePlayServicesAvailable()
```typescript
makeGooglePlayServicesAvailable() => Promise<{ enabled: boolean; }>
```Retrieve enabling google play services available request result
**Returns:**
Promise<{ enabled: boolean; }>
--------------------