How to schedule notifications using WorkManager?

WorkManager isn’t appropriate for work that needs to happen at a particular time.

You should use AlarmManager, and specifically AlarmManagerCompat.setExactAndAllowWhileIdle(), to get a callback at a specific time.

Leave a Comment