Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phonegap/Cordova platform independent background service

We've been working on a mobile app using Phonegap/Cordova 3.3.0.

The problem we have now is that we really need a background service for this app which needs to run without opening the app itself.

I've found some services like https://github.com/Red-Folder/Cordova-Plugin-BackgroundService but all of these services seem platform dependent. The beauty of Phonegap is that the development is mostly platform independent.

Does anyone know of a background service which runs independent of any platform? I think it's pretty hard to find such a service because IOS and android differ too much.

Thank you very much in advance.

like image 974
luuk86 Avatar asked Feb 06 '14 09:02

luuk86


1 Answers

I think you are right with you assumptions, unless anyone has developed the plugin yourself then looks like you'll have to do it yourself.

But I am not sure how to do this in iOS - I do not think it supports true multitasking?

However, remember that with Cordova/PhoneGap - the only reason it is truly cross-platform is because somebody before you wrote the bridges between native-to-JavaScript - so there is always going to be an element of native code in there somewhere.

like image 95
keldar Avatar answered Nov 10 '22 18:11

keldar