0.7.0 • Published 7 years ago
cordova-plugin-apkinstall v0.7.0
Cordova Apkinstall World Plugin
Simple plugin that returns your string prefixed with apkinstall.
Greeting a user with "Hello, world" is something that could be done in JavaScript. This plugin provides a simple sdkdigilab demonstrating how Cordova plugins work.
Using
Create a new Cordova Project
$ cordova create apkinstall com.sdkdigilab.apkinstallapp Apkinstall
Install the plugin
$ cd apkinstall
$ cordova plugin add https://github.com/don/cordova-plugin-hello.git
Edit www/js/index.js
and add the following code inside onDeviceReady
var success = function(message) {
alert(message);
}
var failure = function() {
alert("Error calling Apkinstall Plugin");
}
apkinstall.greet("World", success, failure);
Install iOS or Android platform
cordova platform add ios
cordova platform add android
Run the code
cordova run
More Info
For more information on setting up Cordova see the documentation
For more info on plugins see the Plugin Development Guide
0.7.0
7 years ago