Giter VIP home page Giter VIP logo

cordova-plugin-backgroundservice's Introduction

IMPORTANT NOTE

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.

In future all updates to the plugin will be tweeted via @FolderRed

Background Service Plugin for Phonegap

A plugin (and framework code) that allows the development and operation of an Android Background Service.

The example MyService Background Service will write a Hello message to the LogCat every minute. The MyService is designed as sample code.

Cordova Versions

Folders used for different Cordova versions:

  • /2.2.0 - For use with Cordova 2.2.0
  • /2.3.0 - For use with Cordova 2.3.0
  • /2.4.0 - For use with Cordova 2.4.0
  • /2.5.0 - For use with Cordova 2.5.0
  • /2.6.0 - For use with Cordova 2.6.0
  • /2.7.0 - For use with Cordova 2.7.0
  • /2.8.0 - For use with Cordova 2.8.0
  • /2.8.1 - For use with Cordova 2.8.1
  • /2.9.0 - For use with Cordova 2.9.0
  • /3.0.0 - For use with Cordova 3.0.0
  • /3.1.0 - For use with Cordova 3.1.0

Depreciated Versions

Over time I will no longer maintain older versions. These will be listed here. The code will still be available in the source, but may not compile or build without work.

  • /1.8.1 - For use with Cordova 1.8.1 - Depreciated 21st August 2013
  • /2.0.0 - For use with Cordova 2.0.0 - Depreciated 21st August 2013

Change Log

  • 9th November 2013 - Added ability to listen for doWork() updates using registerForUpdates/ deregisterForUpdates. See individual version README for support info (rolling out version by version. For more info see Red-Folder#17
  • 20th September 2013 - Added runOnce support (see Red-Folder#14)
  • 4th September 2013 - Fixes for NullPointerException (see Red-Folder#7)
  • 27th August 2013 - Added TimerMilliseconds to returned JSONObject (see Issue 5)
  • 12th May 2013 - Updated to handle service being restarted by OS (version 2.2+)
  • 14th November 2012 - Fix for service not stopping if the app has been closed then re-opened

Further Information

Further information on the plugin can be found at:

The below is a tutorial to create your own Twitter service:

Please let me know your thoughts and comments.

Source Code

This repository uses jar files for the main logic. Due to the complexity of the code, I've found this is the easiest method to distribute it.

Should you be interested in the underlying source, it is available in this repository -> https://github.com/Red-Folder/Cordova-Plugin-BackgroundService-Source

Spread the love

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

Licence

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.

cordova-plugin-backgroundservice's People

Contributors

neliojrr avatar red-folder 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.