https://github.com/sectore/phonegap3-native-ios-plugin
Example of a simple native iOS plugin for using PhoneGap 3
https://github.com/sectore/phonegap3-native-ios-plugin
Last synced: about 1 year ago
JSON representation
Example of a simple native iOS plugin for using PhoneGap 3
- Host: GitHub
- URL: https://github.com/sectore/phonegap3-native-ios-plugin
- Owner: sectore
- Created: 2013-07-25T12:58:38.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2013-10-08T15:58:06.000Z (over 12 years ago)
- Last Synced: 2025-04-07T16:51:45.247Z (about 1 year ago)
- Language: Objective-C
- Size: 556 KB
- Stars: 17
- Watchers: 4
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Example of a native iOS plugin for using PhoneGap 3.0.
[PhoneGap 3.0 introduces](http://phonegap.com/blog/2013/07/19/adobe-phonegap-3.0-released/) a new plugin architecture. With this release any custom plugin can be installed
by using [PhoneGap's CLI](https://github.com/mwbrooks/phonegap-cli) or [Cordova Plugman](https://github.com/apache/cordova-plugman/).
For a better understanding of the changes of PhoneGap 3.0 this repository provides a very simple native iOS plugin.
## Screen shot
[](https://github.com/sectore/phonegap3-native-ios-plugin)
## Installation
- Make sure that you have [Node](http://nodejs.org/) and [PhoneGap CLI](https://github.com/mwbrooks/phonegap-cli) installed on your machine.
- Create your PhoneGap example app
```bash
phonegap create my-plugin-example-app && cd $_
```
- Add the plugin to it
```bash
phonegap local plugin add https://github.com/sectore/phonegap3-native-ios-plugin
```
- Open `index.html and add a button
```html
Say hello to your plugin!
```
- Register plugin within `config.xml` of your app
```xml
```
- Build and run app
```bash
phonegap run ios
```
## Author
Jens Krause // [WEBSECTOR.DE](http://www.websector.de)
[](https://bitdeli.com/free "Bitdeli Badge")