Skip to content

Simple Cordova plugin that helps to echo the message and it will support both iOS and Android platforms.

Notifications You must be signed in to change notification settings

vigneshuvi/cordova-plugin-echo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Cordova Echo Plugin

Simple Cordova plugin that helps to echo the message and it will support both iOS and Android platforms.

##Two kind of Echo messages plugins.

1. Thread-safe callback.    
2. Non Thread-safe callback.

Using

Clone the plugin

$ git clone https://github.com/vigneshuvi/cordova-plugin-Echo.git

Create a new Cordova Project

$ cordova create echo com.uviexample.uviechoapp Echo

Install the plugin

$ cd echo
$ cordova plugin add ../cordova-plugin-Echo

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

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

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

       echo.threadFunction("Echo me - thread!!!", success, failure);
       echo.nonThreadFunction("Echo me - nonthread!!!", success, failure);

Install iOS or Android platform

cordova platform add ios
cordova platform add android

Build the code

cordova build     

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


Do you like it?

Do you like this repo? Share it on Twitter, Facebook, Google+ or anywhere you like so that more of us can use it and help. Thanks!

Created by Vignesh

alt text

About

Simple Cordova plugin that helps to echo the message and it will support both iOS and Android platforms.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published