I need to show my app icon in the notification bar for the push received but when I receive a push notification in the notification bar, the Android Lollipop only show a star icon instead of the app icon, but in the IOS notification bar show the correct icon of the app. I am using IBM Bluemix push notification with phonegap. My config.xml is this http://pastebin.com/bpKFn51z.
This answer White notification icon for Android with Phonegap Build and PushPlugin maybe work but IBM Bluemix only distribute the jar files of his API.
you should use Cordova StatusBarNotification plugin.
Or if you want a faster solution, you can follow what is suggested in the following blog post:
http://devgirl.org/2012/10/25/tutorial-android-push-notifications-with-phonegap/
Related
We are finalising an App in Flutter that uses Firebase messaging. Notifications are arriving on iOS and Android. On iOS, the notification is presented on iOS notification list. But, no notification is showing on Android's notifications list or Android's top bar. I need some help on this. Thanks!
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
What you need its called "push notifications".
PhoneGap has some plugins for that.
plugin
sample app
tutorial
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.
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.
I have developed the apps in phonegap for android with cordova 3.4. my apps having dynamic list which is updated from server now what I want is suppose apps list will updated from server then android apps get automatically notification to their android device (means on notification bar) whatever apps is opened or not and I want to send the notification those user they installed the apps.
I have kept my apk on my private server from their user will download and install.
Thanks in advance
for that you should basically use GCM with PushPlugin from Cordova.
A very detailed tutorial can be found here: http://devgirl.org/2013/07/17/tutorial-implement-push-notifications-in-your-phonegap-application/
I'm currently developing android apps using phonegap + jquery mobile. I need to add notification bar in my application. Currently, I'm using Notification phonegap plugin to handle notification. But it didn't send notification when application closed. Is there any solution to keep my user recieve notification even application is closed? Can I use Google Cloud Messanging to solve it?
Thank you and sorry for my bad english
You can use push notifications. The following plugin handles both Android and iPhone notifications:
https://github.com/phonegap-build/PushPlugin
A notification will be shown whenever a push message is received and it contains a message attribute.
I am just learning PhoneGap and I would like to push notifications to the notification tray on a timer.
I tried the notification function in the PhoneGap API but its only for messages boxes with in the application its self.
Any ideas how to send a push notifications to the "Notification tray" android system?
UPDATE: I have not worked with Phonegap for a very long time, and this repo is no longer managed.
Here is a phonegap plugin that I have written for system notifications.
https://github.com/saileshmittal/phonegap-system-notification-plugin
Official phonegap plugin contains the status bar notification. You can find how to set it up here:
You can look at all the supported plugins at the Cordova Plugin Registry