I use local notification heavily in my app. I get local notifications but I needed something else to happen after notification is triggered. So I used
this.localnotification.on('trigger', (notification) => {
//Do something here
});
in constructor of one of my provider.
This doesn’t work only when app is not opened for a while. if I opened my app at least 4 hours before some local notification is about to trigger then above trigger will happen. I’m assuming issue is app goes into sleep mode if it’s not been opened for a while. Has anyone experienced similar kind of issue and know the solution for it.
Please respond, I’m just this issue away from launching my app.