GithubHelp home page GithubHelp logo

parksangkil / cordova-startapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dmedvinsky/cordova-startapp

0.0 1.0 0.0 111 KB

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

License: MIT License

Java 48.73% JavaScript 21.15% Objective-C 30.12%

cordova-startapp's Introduction

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

     <key>StartApp</key>
     <string>StartApp</string>
    

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

  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

     <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

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

    whenever required.

cordova-startapp's People

Contributors

dmedvinsky avatar yyang avatar

Watchers

Park Sang kil avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.