cordova-plugin-googleplayservices-check
v1.0.4
Published
Simple cordova plugin for checking that the google play services are installed, updated and enabled.
Downloads
26
Maintainers
Readme
Cordova Google Play Services Check
Simple cordova plugin for checking that the google play services are installed, updated and enabled.
Using
In your cordova project folder:
$ cordova plugin add cordova-plugin-googleplayservices-checkThen the variable 'GooglePlayServicesCheck' will be available after deviceready fires.
document.addEventListener('deviceready', function () {
var success = function(response) {
// response.isGooglePlayServicesAvailable is a boolean value
response.isGooglePlayServicesAvailable;
}
var failure = function(response) {
response.isGooglePlayServicesAvailable;
}
GooglePlayServicesCheck.check(success, failure);
})