cordova-plugin-check-installed-services

0.0.2 • Public • Published

Cordova Check Installed Service Plugin

Simple plugin that checks if a service is installed. Currently only check if Google Play Services is installed.

Using

In your cordova project folder:

$ cordova plugin add https://github.com/gongfan99/cordova-plugin-check-installed-services.git

Then the variable 'CheckInstalledServices' will be available after deviceready fires.

	document.addEventListener('deviceready', function () {
	
		var success = function(message) {
			alert("GooglePlayServiceInstalled? " + message.isGooglePlayServicesAvailable.toString());
		} // message.isGooglePlayServicesAvailable is a boolean value

		var failure = function(message) {
			alert(JSON.stringify(message));
		}

		CheckInstalledServices.check(success, failure);
	})

Package Sidebar

Install

npm i cordova-plugin-check-installed-services

Weekly Downloads

1

Version

0.0.2

License

MIT

Last publish

Collaborators

  • gongfan99