admin管理员组文章数量:1388885
I am building an Android mobile app, simple timer with predefined intervals for a specific use case, the intervals span to 6 hours overall, with 15 and 30-minutes intervals, and I am not sure what is the best way to do it
Should I use a foreground service to monitor my notifications while my app is not active?
should I schedule all notifications in advance or schedule the next notification once the previous notification completed?
attached is a mock of the app UX
I am building an Android mobile app, simple timer with predefined intervals for a specific use case, the intervals span to 6 hours overall, with 15 and 30-minutes intervals, and I am not sure what is the best way to do it
Should I use a foreground service to monitor my notifications while my app is not active?
should I schedule all notifications in advance or schedule the next notification once the previous notification completed?
attached is a mock of the app UX
Share Improve this question edited Mar 17 at 8:56 Babonet asked Mar 16 at 14:18 BabonetBabonet 11 bronze badge 1- Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. – Community Bot Commented Mar 16 at 18:41
1 Answer
Reset to default 0I would probably set a X number of notifications in advance depending what is the frequency of user getting in app and trigger a mechanism when the app is foreground to check the notifications which are not yet delivered.
the mechanism will clean the ones not in line anymore (if you have a deviation or notification time and set back again X number or notifications).
It might not be the best optimized strategy.
You might also have check the expo notification documentation which might help you https://docs.expo.dev/versions/latest/sdk/notifications/
Br
本文标签: Android Notification strategy using EXPOStack Overflow
版权声明:本文标题:Android Notification strategy using EXPO - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744597723a2614875.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论