I would like to know what is the best way to solve my problem. And my problem is as follows.
I developed an Android application using cordova. Android's own code is minimal.
I need, when the application starts, start a service with it. When the application closes, the service must remain on. The service communicates with the server and downloads something if that "something" exists. Only after the download event should the service notify the user of the start of the initial application and see the results or, even better, the service itself, in order to launch the initial application.
What is the best way to implement this, given that I do not want to drop my application in a cord.
I considered creating a plugin, since the very code of the source application and the service code are the same. Is cordova plugin the best way to implement my service ? Can the cordova plugin serve my purpose, or am I completely wrong?
Can I use my javascript code in this plugin?
Do I need to upgrade to my own code in order to accomplish what I need?
Thank you in advance
George
source
share