How to make the whole ionic android app to run in background as a service?


Hi,Im currently developing an todo app by using ionic framework which can synchronize with the pouchdb when it 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 if I want to 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 new task. So my question is,is that possible to make my whole cordova/ionic app or whole app.js to be run in background as a background service? thx!