cordova-plugin-background-service

1.3.5 • Public • Published

BackgroundService

Installing the plugin

$ cordova plugin add cordova-plugin-background-service

Using the plugin

The plugin creates the object window.BackgroundService with the methods start(success, failure, config), and stop(success, failure).

window.BackgroundService.start(
    function(fn) { dosometing(), fn && fn() },
    function() { console.log('err') }
)

Code Refs

https://github.com/katzer/cordova-plugin-background-mode

https://github.com/transistorsoft/cordova-plugin-background-fetch

Package Sidebar

Install

npm i cordova-plugin-background-service

Weekly Downloads

1

Version

1.3.5

License

Apache License Version 2.0

Last publish

Collaborators

  • anrip