Android Question Schedule Notifications

Alexander Stolte

Expert
Licensed User
Longtime User
Under IOS it is possible, for example, to have a notification displayed every Monday at a certain time.

What is the Android way?
How can I display a notification every Monday on Android?
 
Solution
How can I display a notification every Monday on Android?
create a scheduled receiver which is started on "next Monday" and show the Notification when the recevier runs.

Shedule the receiver then again for the Next Monday....

You can use this sub to calculate a time for the next day

1 If the receiver start check if it is monday.
2 If not, reschedule the receiver for the next day...
3 GOTO 1

DonManfred

Expert
Licensed User
Longtime User
How can I display a notification every Monday on Android?
create a scheduled receiver which is started on "next Monday" and show the Notification when the recevier runs.

Shedule the receiver then again for the Next Monday....

You can use this sub to calculate a time for the next day

1 If the receiver start check if it is monday.
2 If not, reschedule the receiver for the next day...
3 GOTO 1
 
Last edited:
Upvote 1
Solution

asales

Expert
Licensed User
Longtime User
I use this code since that Erel created the post.
It works fine, but due the new updates in Android, if the user don't open the app in 2-3 days, the alarm is not rising.
Maybe I need made some modification in the code to alarm still showing after some days, but I don't know how.
I think so that in the new Android 14 this option of alarm will be more restrict.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…