I am trying to implement push notifications and I got notifications too. But now I need to notifications in notification bar when switched on. I.e. if I got notification when mobile is on at time we did not see notification that is in notification area, if device shutdown then when I switched on the mobile, at time need to get that notification on notification bar and I have also another requirement, i.e. if I remove notification in notification area then after 10 minutes I need get that notification in notification area/ bar.
How can I accomplish this?
To do stuff on boot register a
BroadcastReceveivertoBOOT_COMPLETEDin your manifest.To do stuff after a certain time use
AlarmManager.