How create notification on status bar using phonegap
Solution 1
What you need its called "push notifications". PhoneGap has some plugins for that.
This might also be helpful:
- Android notifications
- Cordova local notifications plugin with instructions etc -> here you can see how the plugin is installed and used
Be warned, that using proper push notifications you'll have to register your app first - if your notifications are not only local of course.
To send push notifications, you will need to first register your app with the push notification service (Apple APNs or Google GCM) that corresponds to your app's platform.
Solution 2
I know this is old, but to anyone who is still looking, you're probably looking for this: https://github.com/katzer/cordova-plugin-local-notifications
Push notifications allow your phone to receive on-demand notifications. What OP (and what I) was looking for was to actually put something in your notification drawer.
Comments
-
efenz88 almost 2 years
how to create a notification in the status bar on android as shown below using phonegap?
This is the example of notification that i want. notfication example