Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brodycj/cordova-hello-memtest-plugin
Cordova plugin for iOS memory test, based on https://github.com/don/cordova-plugin-hello
https://github.com/brodycj/cordova-hello-memtest-plugin
Last synced: about 1 month ago
JSON representation
Cordova plugin for iOS memory test, based on https://github.com/don/cordova-plugin-hello
- Host: GitHub
- URL: https://github.com/brodycj/cordova-hello-memtest-plugin
- Owner: brodycj
- Created: 2015-02-19T20:10:34.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2015-02-19T20:13:04.000Z (almost 10 years ago)
- Last Synced: 2024-07-31T00:17:15.002Z (5 months ago)
- Language: Objective-C
- Size: 125 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
Clone the plugin$ git clone https://github.com/don/cordova-plugin-hello.git
Create a new Cordova Project
$ cordova create hello com.example.helloapp Hello
Install the plugin$ cd hello
$ cordova plugin install ../cordova-plugin-hello
Edit `www/js/index.js` and add the following code inside `onDeviceReady`
```js
var success = function(message) {
alert(message);
}var failure = function() {
alert("Error calling Hello Plugin");
}hello.greet("World", success, failure);
```Install iOS or Android platform
cordova platform add ios
cordova platform add android
Run the codecordova run
## More Info
For more information on setting up Cordova see [the documentation](http://cordova.apache.org/docs/en/4.0.0/guide_cli_index.md.html#The%20Command-Line%20Interface)
For more info on plugins see the [Plugin Development Guide](http://cordova.apache.org/docs/en/4.0.0/guide_hybrid_plugins_index.md.html#Plugin%20Development%20Guide)