Search code examples
cordovawebviewcordova-pluginsphonegap-pluginsphonegap

How to make phonegap app run even after it is removed from recent list?


I am building an app which has to check a website every 5 minutes. I need to ensure that even if the user removes the app from their recent apps' list in Android, my app can still check that website every 5 minutes.

I found this: https://github.com/katzer/cordova-plugin-background-mode

and some other plugins but they stop working if the app is removed from the user's recent apps' list.

What is the easiest way to do this in Phonegap/Cordova ?


Solution

  • you need a background service to accomplish that, read this