How to Schedule Notification in Android
NOT FOR USE IN OREO+ (edit) The answers above are good – but don’t consider the user’s potential to restart the device (which clears PendingIntent’s scheduled by AlarmManager). You need to create a WakefulBroadcastReceiver, which will contain an AlarmManager to schedule deliver a PendingIntent. When the WakefulBroadcastReceiver handles the intent – post your notification and … Read more