I want to show the notification in mobile, when my app is killed or in background by using Notification Compat Builder in android. Any Suggestions or help are really appreciable. Thanks in advance.
Asked
Active
Viewed 66 times
0
-
the solution is here: [Notification at Specific Time using BroadcastReceiver and AlarmManager](https://stackoverflow.com/questions/47420667/notification-at-specific-time-using-broadcastreceiver-and-alarmmanager) – Araz Mohammadnejad Nov 23 '17 at 20:05
1 Answers
0
Use AlarmManager library. The workflow would be like this:
- Create a
BroadcastReceiver
- Create an alarm at specific time in your code that has as an intent your
BroadcastReceiver
- On the
BroadcastReceiver
onReceive
method build your notification.

Damia Fuentes
- 5,308
- 6
- 33
- 65