Skip to content

Marketing3-0/phonegap3-native-ios-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example of a native iOS plugin for using PhoneGap 3.0.

PhoneGap 3.0 introduces a new plugin architecture. With this release any custom plugin can be installed by using PhoneGap's CLI or Cordova Plugman.

For a better understanding of the changes of PhoneGap 3.0 this repository provides a very simple native iOS plugin.

Screen shot

screen shot

Installation

  • Make sure that you have Node and PhoneGap CLI installed on your machine.

  • Create your PhoneGap example app

phonegap create my-plugin-example-app && cd $_
  • Add the plugin to it
phonegap local plugin add https://github.com/sectore/phonegap3-native-ios-plugin
  • Open `index.html and add a button
<button onclick="myPlugin.sayHello();">Say hello to your plugin!</button>
  • Register plugin within config.xml of your app
<feature name="MyPlugin">
    <param name="ios-package" value="MyPlugin" />
</feature>
  • Build and run app
phonegap run ios

Author

Jens Krause // WEBSECTOR.DE

Bitdeli Badge

About

Example of a simple native iOS plugin for using PhoneGap 3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 54.4%
  • JavaScript 45.6%