M
M
mybiz2014-10-16 12:56:11
phonegap
mybiz, 2014-10-16 12:56:11

How to organize background activity in Cordova application?

I'm developing a Cordova application that sends POST requests to a server - whether the application is currently active or not.
CordovaActivity before super.loadUrl starts service startService(new Intent(this, MainService.class)); After that, the service stays in the background indefinitely (as I understand it). Have I implemented the application's background activity correctly?
It may be necessary to use a background plugin like https://github.com/Red-Folder/bgs-core, but I still don't fully understand what these plugins do and how to work with them.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question