Saxophonist
Saxophonist

Reputation: 707

Phonegap App running in background?

Is it possible to develop a background service for running in android devices and pack with my HTML/JavaScript application in PhoneGap Build?

I'm newbie to Phonegap and would like to know if it's possible only building locally or using PhoneGap Build.

thanks!

Upvotes: 3

Views: 1772

Answers (1)

user432219
user432219

Reputation:

Yes.

First you create a background service in the Java/Android part of your PhoneGap app.

Then you can communicate with the service via a PhoneGap Plug-In in your PhoneGap "WebPage" by using JavaScript, e.g. The Plug-In implemenation (in Android) should be able to communicate with your service as singleton instance for example.

Upvotes: 2

Related Questions