Reputation: 131
I am currently developing a todo app (android) using ionic framework which can synchronize with the pouchdb when it is connected to the internet, and also user will receive notification in background when new task has been added to the database and sync to the phone.
So if I want the user to receive the notification in background the whole app should be also running in background so that it will detect any new task sync to the phone and generate local notification to notify the user about the incoming new task.
So my question is: is it possible to make my whole cordova/ionic app or whole app.js to be running in background as a background service?
Upvotes: 13
Views: 10016
Reputation: 17647
You can try to use this plugin:
https://github.com/MobileChromeApps/cordova-plugin-background-app
eventually, if you need, in conjunction with:
Upvotes: 4