Joe - this calls a background fetch handler for your app at an interval, it doesn't really run in the background.
Erik - just a quick code review: 1. The method swizzling stuff is great but what I have planned (sometime in the future, in progress) is this: https://issues.apache.org/jira/browse/CB-5601 2. The way you are using callbacks is not quite correct Agree on it being a user space plugin -- but I was thinking it could be in cordova-plugins maybe when the time comes On Fri, Feb 21, 2014 at 1:47 PM, Joe Bowser <[email protected]> wrote: > Is this actually running a service? I thought this just runs a > Cordova App in the background, which Android already has a setting > for. > > On Fri, Feb 21, 2014 at 1:44 PM, Brian LeRoux <[email protected]> wrote: > > I think its cool as a user space plugin for now though. Have you > published > > it to http://plugins.cordova.io ? (Its just like npm / you can read up > on > > how here: https://github.com/apache/cordova-plugman) > > > > I really like the idea of us looking at background processing. > > > > Android services: how would that work? Does Firefox OS have the concept > of > > background services? I know Chrome Mobile Apps guys have been doing some > > thinking here too. > > > > > > On Fri, Feb 21, 2014 at 2:53 AM, Erik Jan de Wit <[email protected]> > wrote: > > > >> Hi, > >> > >> I've created an initial version for > >> https://issues.apache.org/jira/browse/CB-4846 the plugin is located at > >> https://github.com/edewit/cordova-background-plugin > >> > >> Cheers, > >> Erik Jan >
