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
Add a comment  | 

1 Answer 1

Reset to default 0

I 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