Android Push Notification

A notification is a message you can display to the user outside of your application's normal UI. Android provides NotificationManager class for this purpose. In order to use this class, you need to instantiate an object of this class by requesting the android system through getSystemService() method.

The last thing you need to do is to call setLatestEventInfo method of the Notification class and pass the pending intent along with notfication subject and body details. And then finally call the notify method of the NotificationManager class.