App Flow: User performs certain actions. These trigger the app to set local notifications at various times on various dates.
eg: 10:30PM on 15th August, 11:00AM on 19th August, 3:30PM on 26th August.
From what I understand, local notifications will only be displayed when the app is in the foreground or background. The app, needs to be invoked. The background persistent time, is roughly 7 minutes if I am not wrong.
How do I get this to work properly, even when the app hasn't been invoked? Something like iOS's native Clock app which sets Alarms or the Notifications feature from the Things (for iPhone) app.
2 Answers
Accepted Answer
Hi Nikhil
There are only three ways that Things can handle notifications;
- If the app is running - then simply tell you
- If the app is in the background - then use local notifications
- If the app is not working - then use push notifications
If the Things app does tell you about events when the app is completely shut down (not in background) then push is the only option for this.
Only Apple apps are able to handle events without the need for local or push notifications.
The Things app has the same restrictions as we do.
Hi Malcom,
I tried this module and turns out, it works perfectly. Highly recommend it.
Ran tests with it to show notifications after 3s, 30s, 3m and 90m. All fired up like fireworks. Cheers to Ben.
Your Answer
Think you can help? Login to answer this question!