Coder Social home page Coder Social logo

ekodedypurnomo / cordova-plugin-autostart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tonikorin/cordova-plugin-autostart

0.0 2.0 0.0 28 KB

This Cordova plugin will start automatically your app after the every boot or the auto-update of your application. You can enable or disable the autostart function in your app.

Home Page: https://github.com/ToniKorin/cordova-plugin-autostart

License: Apache License 2.0

Java 84.49% JavaScript 15.51%

cordova-plugin-autostart's Introduction

Autostart plugin

This Cordova plugin will start automatically your Android app after the every boot or the auto-update of your application. You can enable or disable the autostart function in your app. The plugin is also compatible with PhoneGap Build.

Supported Platforms

  • Android

Usage

Enable the automatic startup after the boot

cordova.plugins.autoStart.enable();

Disable the automatic startup after the boot

This is the default action if you have never called the "enable" function.

cordova.plugins.autoStart.disable();

Installation

The plugin can either be installed from git repository, from local file system through the Command-line Interface or cloud based through PhoneGap Build.

Local development environment

From master:

# ~~ from master branch ~~
cordova plugin add https://github.com/ToniKorin/cordova-plugin-autostart.git

from a local folder:

# ~~ local folder ~~
cordova plugin add cordova-plugin-autostart --searchpath path

or to use the latest stable version:

# ~~ stable version ~~
cordova plugin add [email protected]

To remove the plug-in, run the following command:

cordova plugin rm cordova-plugin-autostart

PhoneGap Build

Add the following xml line to your config.xml:

<gap:plugin platform="android" name="cordova-plugin-autostart" version="2.0.1" source="npm"/>

Remarks

  1. Installation to the SD card will prevent the automatic start of your app after the boot. See more details from here.
  2. During the boot your app may start before it has no network connectivity. Your app have to take care of it e.g. using the cordova-plugin-network-information.

History

Check the Change Log.

License

This software is released under the Apache 2.0 License.

© 2015 Toni Korin

cordova-plugin-autostart's People

Contributors

lentschi avatar neilgierman avatar tonikorin avatar

Watchers

 avatar  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.