1.0.1 • Published 6 years ago
cordova-android-check-package v1.0.1
Cordova Android Check Package Plugin
Plugin for the Cordova framework to check if a application is installed on Android.
Instalation
The plugin can be installed via Cordova-CLI and is publicly available on NPM.
Execute from the projects root folder:
$ cordova plugin add cordova-android-check-package
Or install the latest head version:
$ cordova plugin add https://github.com/KbaylonH/cordova-android-check-package.git
For Ionic Project
$ ionic cordova plugin add cordova-android-check-package
Or
$ ionic cordova plugin add https://github.com/KbaylonH/cordova-android-check-package.git
Usage
You need to pass the package name of the app. For example the package name for Whatsapp is com.whatsapp
window.CheckPackagePlugin.checkApp('com.whatsapp', function(){
console.log("Whatsapp is installed");
}, function(){
console.log("Whatsapp is not installed");
});
License
This software is released under the ISC License
Made by @KbaylonH