Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dmedvinsky/cordova-startapp

Cordova (aka PhoneGap) plugin to start external activity (Android and iOS)
https://github.com/dmedvinsky/cordova-startapp

android cordova ios phonegap

Last synced: 3 months ago
JSON representation

Cordova (aka PhoneGap) plugin to start external activity (Android and iOS)

Awesome Lists containing this project

README

        

# StartApp plugin for Cordova

## License

MIT/X11

## Usage

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

StartApp
StartApp

to your `Cordova.plist` inside `Plugins...`
4. Copy `Android/StartApp.java` to `src/com/phonegap/plugins/startapp`
directory of your Android project.
5. Add `Android/startapp.js` to your web application as `startapp.android.js`.
6. Add

to your `res/xml/config.xml` inside ``.
7. Copy corresponding JS file to `startapp.js` when building the project.
8. Include `startapp.js` on your HTML pages.
8. Use

window.startapp.start(
{
android: 'com.mycompany.myapp/com.mycompany.myapp.MyActivity',
ios: 'myURL'
},
successCallback, failureCallback
);

whenever required.