1.0.4 • Published 3 years ago

cordova-plugin-hellovk v1.0.4

Weekly downloads
9
License
Apache-2.0
Repository
github
Last release
3 years ago

Cordova Hello World Plugin

Simple plugin that returns your string prefixed with hello.

Greeting a user with "Hello, world" is something that could be done in JavaScript. This plugin provides a simple example demonstrating how Cordova plugins work.

Using

Install the plugin

$ cordova plugin add https://github.com/vaibhavvk10/cordova-plugin-hellovk.git

Install the NPM package

$ npm i cordova-plugin-hellovk

More details go to https://www.npmjs.com/package/cordova-plugin-hellovk

Edit www/js/index.js and add the following code inside onDeviceReady

    var success = function(message) {
        alert(message);
    }

    var failure = function() {
        alert("Error calling Hello Plugin");
    }

    hello.message("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