Notifications are messages that are sent to users who have opted in
to receive them.
means providing information.
when notification comes in foreground than the notificaton will display directly on app.
when notification comes and device is locked , if user open the device with sliding the notification than the application should get launch.
when notification comes and device is not locked than the notification comes in banner if user click on the banner than the application launch and if user is unable to click on banner than the notification with showed in the notification tray. From the notification tray user can click on the notification and user can move to the application.
when notification and user didn't click on banner than the notification count should get updated on the icon of the application.