I need to schedule the automatic sending of emails for the future. This can be anything from a few minutes to a few days or weeks into the future.
From the research that I’ve done, I think this would be possible using AlarmManager but I’ve read in another post (Android alarmmanager not being very reliable) that it’s not very reliable and the events could potentially get cancelled.
What other possible approaches are there to accomplish such tasks?
Thanks.
It’s fairly reliable, as reliable as you are going to get. Events can get canceled (e.g., because the user force-stops your app), because it’s the user’s phone, not yours, and they get to control their phone, not you.
Use
AlarmManager, please. Anything else will be less reliable and waste RAM and battery life.