Cordova (aka PhoneGap) plugin to start external activity (Android and iOS)
Java Objective-C JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Android Revised according to recent API change. Mar 27, 2013
iOS Update for iOS May 1, 2013
LICENSE Initial import Jul 5, 2012 Update for iOS May 1, 2013

StartApp plugin for Cordova




See Android and iOS folders for Android and iOS usage, respectivelly.

If you want to build for both platforms

  1. Add iOS/StartApp.m and iOS/StartApp.h files to your iOS project in Plugins directory.

  2. Add iOS/startapp.js to your web application as startapp.ios.js.

  3. Add


    to your Cordova.plist inside <key>Plugins</key><dict>...</dict>

  4. Copy Android/ to src/com/phonegap/plugins/startapp directory of your Android project.

  5. Add Android/startapp.js to your web application as

  6. Add

     <plugin name="StartApp" value="com.phonegap.plugins.startapp.StartApp"/>

    to your res/xml/config.xml inside <plugins></plugins>.

  7. Copy corresponding JS file to startapp.js when building the project.

  8. Include startapp.js on your HTML pages.

  9. Use

             android: 'com.mycompany.myapp/com.mycompany.myapp.MyActivity',
             ios: 'myURL'
         successCallback, failureCallback

    whenever required.