Workmanager vs Alarm manager

from the CommonsWare Community archives

At December 30, 2019, 8:46am, Hadysalhab asked:

Merry Christmas and wish you a happy new year.
I have a case where the user pick a time from the time picker
And at that time(the time that the user selected) i have to notify the user by sending a notification
My question is
Should i use workmanager and enqueue the work
By setting an initial delay that is equal to the time picked minus the current time (aka the difference)
Or should i set an alarm that will be triggered at the time picked?

If both methods give me the same result
What are the advantages of using one over the other?
Thank you

At December 30, 2019, 12:22pm, mmurphy replied:

I would do everything in my power to avoid the need for that functionality. Otherwise: