• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps Best way to handle reminders?

Hello all. I'm trying to write an app that allows me to set reminders at a future time. I want the app to send a notification at the pre-designated time. I am having some trouble figuring out the best way to manage the reminders. Should I write a service that starts at boot time that checks the clock every minute to see if any reminders expired? Would it be better to use the AlarmManager service? This app needs to automatically start at boot time so that the reminder notifications occur even after a restart, without the user having to start the app manaully. Any suggestions?

TIA!

--FCOD
 
Hello all. I'm trying to write an app that allows me to set reminders at a future time. I want the app to send a notification at the pre-designated time. I am having some trouble figuring out the best way to manage the reminders. Should I write a service that starts at boot time that checks the clock every minute to see if any reminders expired? Would it be better to use the AlarmManager service? This app needs to automatically start at boot time so that the reminder notifications occur even after a restart, without the user having to start the app manaully. Any suggestions?

TIA!

--FCOD

Best bet would be a service. If it were me, I would write my own service rather than implement a pre-exisiting one.
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones