Background Task

Cordova / PhoneGap Plugin for running background tasks (will also run for up to 3 minutes after the app is suspended).
Lee Crossley (http://ilee.co.uk/)0.1.01
platforms: ios
$ cordova plugin add uk.co.ilee.backgroundtask

Background Task Plugin for Apache Cordova

Allows you to run JavaScript when the app is active and for 3 minutes after the app is suspended.

Install

cordova plugin add https://github.com/leecrossley/cordova-plugin-background-task.git

You do not need to reference any JavaScript, the Cordova plugin architecture will add a backgroundtask object to your root automatically when you build.

Usage

Start

backgroundtask.start(functionToRun);

Platform support

iOS only.

License

MIT License