how to create a notification in the status bar on android as below using phonegap?
This is an example of the notification I want. notification example
What you need is called push notifications. PhoneGap has plugins for this.
This may also be useful:
Be warned that when using proper push notifications, you must first register your application - if your notifications are not only local to the course.
To send push notifications, you must first register your application using the push notification service (Apple APN or Google GCM) that matches the platform of your application.
I know this is old, but for those still looking, you are probably looking for this: https://github.com/katzer/cordova-plugin-local-notifications
Push notifications allow your phone to receive notifications upon request. What the OP (and what I) was looking for is actually putting something in your notification drawer.