Before I get pointed at my own plugin ;) -> I maintain the Android Background Service plugin which provides a framework for developers to run code in an Android Background Service.
One of the common questions I receive is "How do I run my javascript in the Background Service"?
My stock answer to date has been "you don't - rewrite your code into java and run it from my plugin". This works (or has so far), but isn't ideal for a lot of people.
So I'm looking for ideas, pointers, etc on how I can provide a plugin which accepts javascript (as a string, file, whatever) pass that off to my Background Service and then have it execute within the Background Service context.
Unfortunately, other than for the plugin, I don't actively use Phonegap so am fairly ignorant of the internal workings. My hope is that there is a JavaScript engine that I can just lift and re-purpose.
I'm unlikely to start cutting code for this before September (maintaining the existing plugin eats into my spare time quite a bit already) - so any advice prior to this would be great (hoping for the "standing on the shoulders of giants" technique).
Thanks.