https://github.com/memojja/ionic-native-wrapper
for ios, android
https://github.com/memojja/ionic-native-wrapper
cordova cordova-plugin ionic
Last synced: about 1 month ago
JSON representation
for ios, android
- Host: GitHub
- URL: https://github.com/memojja/ionic-native-wrapper
- Owner: memojja
- Created: 2018-08-03T13:18:47.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-08-03T15:00:01.000Z (almost 8 years ago)
- Last Synced: 2025-01-21T19:12:01.695Z (over 1 year ago)
- Topics: cordova, cordova-plugin, ionic
- Language: Objective-C
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Using
$ cordova plugin add https://github.com/memojja/ionic-native-wrapper.git
Edit `www/js/index.js` and add the following code inside `onDeviceReady`
```js
var num1 = 5;
var num2 = 6;
var success = function(message) {
alert(message);
}
var failure = function() {
alert("Something happen!!");
}
calculator.add ({
param1: num1,
param2: num2
}, 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](http://cordova.apache.org/docs/en/latest/guide/cli/index.html)
For more info on plugins see the [Plugin Development Guide](http://cordova.apache.org/docs/en/latest/guide/hybrid/plugins/index.html)