I need to set up a periodic notification to remind users to place an order on my app, every monday and Wednesday. The notification should pop up whether or not the app is “on” or not (i.e. whether it has been destroyed, pause or is the main activity in memory).
I don’t understand, from the developers documentation and from online tutorials, whether I need to:
– simply set up a notification.
– use alarmanager.
– user broadcastreceiver.
– use a service that uses alarmanager that sends a notification.
Can anyone please point me in the right direction?
You will have to combine all the things AlarmManager + BroadcastReceiver + Notification + Service(Optional).
AlarmManager + PendingIntentand set the Broadcast Receiver intent for your Pending Intent.