Tried to use https://www.npmjs.com/package/cordova-plugin-scheduler for scheduling function to work in app killed state.