Simple app which demonstrates workmanager and pending notification
The WorkManager API makes it easy to schedule deferrable, asynchronous tasks that are expected to run even if the app exits or device restarts. Key features: Backwards compatible up to API 14 Uses JobScheduler on devices with API 23+ Uses a combination of BroadcastReceiver + AlarmManager on devices with API 14-22 Add work constraints like network availability or charging status Schedule asynchronous one-off or periodic tasks Monitor and manage scheduled tasks Chain tasks together Ensures task execution, even if the app or device restarts Adheres to power-saving features like Doze mode Read More WorkManager

