Skip to content

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

License

Notifications You must be signed in to change notification settings

gongfan99/cordova-plugin-check-installed-services

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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);
	})

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published