I've been struggling with the issue for a few days already.
I have an android app where the user specify how often a plant should be watered. I want to send a notification based on how often the plant should be watered. (e.g. send a notification every 3 days).
I know there are a bunch of questions addressing this issue, but I still couldn't make it work.
I started with implementing/starting a Service with an alarm manager.
The main issue is that once my app is killed, notifications are not sent anymore.
I am using firebase to store all the data.
I read something about firebase functions, but I don't know if this can be applied.
I am storing in the database "how many days ago has the plant been watered" and how frequently should this plant be watered.
Thank you for your time.