I want to implement notification in my android app.
The case is, I want to show the notifications when my app is closed and turn off when app is opened. So basically I want to show the notifications when the app is closed.
So what should I use in this situation? Should I use Service + AlarmManager?
Can anyone give me some example or reference?
Thanks
You can use NotificationManager for notifications, and for start/close you can use onCreate() and onDestroy(). Activity lifetime