Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question