How to make the whole ionic Android application to work as a background service?

I am currently developing a todo (android) application using an ionic structure that can synchronize with pouchdb when it is connected to the Internet, and the user is also notified in the background when a new task has been added to the database and synchronized with the phone .

Therefore, if I want the user to receive a notification in the background, the entire application should also be running in the background so that it detects any new synchronization task with the phone and generates a local notification to notify the user of a new new task.

So my question is: is it possible to make my entire cordova / ionic application or whole app.js in the background as a background service?

+7
android cordova ionic-framework
source share
1 answer

You can try using this plugin:

https://github.com/MobileChromeApps/cordova-plugin-background-app

after all, if you need to, combined with:

+2
source share

All Articles