This repository is no longer active.
The plugin has been converted to support the Plugman format plugins - for this I have created a new repository. This is in line with Cordova project direction. I will no longer support this repository. Any issues should be logged against the new respoistories.
- Core logic is now Plugman compatible and found here -> https://github.com/Red-Folder/bgs-core
- A sample plugin is also available in Plugman format and available here -> https://github.com/Red-Folder/bgs-sample
- Both plugins are also available from http://plugins.cordova.io/
- Fully re-documented which can be found here -> https://github.com/Red-Folder/bgs-core/wiki
- Issues should now me raised here -> https://github.com/Red-Folder/bgs-core/issues
In future all updates to the plugin will be tweeted via @FolderRed
This is the source code for my BackgroundService for use with Cordova.
Normally it will be easier for you to use the compiled versions, found at https://github.com/Red-Folder/Cordova-Plugin-BackgroundService
I use the code within an Android Library. Copy the src & aidl folders into the root folder of your project.
Note that if you attempt to use this code directly within an application, you will be need to refer to additional files provided in https://github.com/Red-Folder/Cordova-Plugin-BackgroundService
Cordova versions provide different plugin architecture. To provide for this I have seperate wapper for each version. This is represented by the various BackgroundServicePlugin.vx.x.x.java files.
You will only want to include one of these in your project (delete the other versions) and then rename it to BackgroundServicePlugin.java.
Over time I will no longer maintain older versions. These will be listed here. The code is still be available, but may not compile or build without work.
- BackgroundServicePlugin.v1.8.1.java - For use with Cordova 1.8.1 - Depreciated 21st August 2013
- BackgroundServicePlugin.v2.0.0.java - For use with Cordova 2.0.0 - Depreciated 21st August 2013
Further information on the plugin can be found at:
- http://red-folder.blogspot.co.uk/2012/09/phonegap-android-background-service.html
- http://red-folder.blogspot.com/2012/09/phonegap-android-background-service_11.html
The below is a tutorial to create your own Twitter service:
- http://red-folder.blogspot.com/2012/09/phonegap-service-tutorial-part-1.html
- http://red-folder.blogspot.com/2012/09/phonegap-service-tutorial-part-2.html
- http://red-folder.blogspot.com/2012/09/phonegap-service-tutorial-part-3.html
Please let me know your thoughts and comments.
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
The MIT License
Copyright (c) 2013 Red Folder Consultancy Ltd
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.