I have an Cordova (Angular 1.x) application that is primarily aimed at Android & iOS devices - I am looking to implement background processes into the application. I have come across the following plugin - https://github.com/katzer/cordova-plugin-background-mode
While the plugin does work, the app is always running in the background (which I’d expect to use a fair bit of battery life quickly) - can anyone suggest the best way or a plugin that will allow me to run a background process while the app itself has something to upload?
So - in the background the app checks if it has data to send - if so it will send this in the background, once it has finished sending it closes the background process so the app is running constantly.
Any ideas?
Cordova 7.x app using Angular 1.x