Please be aware that I'm no longer actively maintaining this plugin.
I believe the problem it solved is now better handled with PWA technologies like Service Worker and Push Notifications.
I would also consider technologies such as Phonegap & Cordova to largely to have been eclipsed by PWAs.
Please keep the above in mind before actively using this plugin.
This repository provides the core functionality for the Background Service Plugin for Cordova. The functionality is not a complete plugin - it is intended to be extended by developers to create their own background service.
An example background service is provided in the https://github.com/Red-Folder/bgs-sample repository.
To understand how to create your own background service it is advised that you read the following articles:
- [Using the MyService Sample] (https://github.com/Red-Folder/bgs-core/wiki/Using-the-MyService-Sample)
- [Build your own Background Service] (https://github.com/Red-Folder/bgs-core/wiki/Build-your-own-Background-Service)
- [Build your own plugin] (https://github.com/Red-Folder/bgs-core/wiki/Build-your-own-plugin)
Further documentation can be found at https://github.com/Red-Folder/bgs-core/wiki
If you have problems, then please log an issue against the bgs-core repository (https://github.com/Red-Folder/bgs-core/issues).
As the plugin is updated (for new features or fixes) I will tweet via @FolderRed and blog http://red-folder.blogspot.co.uk/
This version of the plugin is intended to work with Cordova 3.0.0+
The older version of the plugin is available at https://github.com/Red-Folder/Cordova-Plugin-BackgroundService. Please note however that this older repository is unlikely to be maintained going forwards. It is advised that you move to Cordova 3.x.x as soon as possible.
If you find the Background Service Plugin useful then spread the love.
All the work I do on the Plugin is done in my spare time - time I would otherwise be spending taking my wife out for a nice meal or helping my lad find vinyl records (he's currently very much into The Smiths, Fleetwood Mac and Kate Bush).
The Plugin is free and will always remain free. I will continue to develop, maintain and distribute the Plugin under the MIT License.
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=E64TCFQ3NLHZ8
Copyright 2013 Red Folder Consultancy Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.