I have an app that does something similar to the classic Clock alarm app.
I can set alarm and save them (to Room). I know that I can use WorkManager to start an alarm (which just send a notification) at the time (calculating 24h from the time set on the alarm).
However, I have difficulty for setting an alarm (with notification) every 24 hours, without using a foreground service.