Phonegap adding items to the notification tray - android

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

Related

Phonegap using Bluemix push don't show app icon

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/

How create notification on status bar using phonegap

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.

how to get automatic notification to android device(on notification bar) using phonegap 3.4?

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/

titanium android push notification callback listener

I am having a problem. I have looked through the tutorial and had no problems setting up push notifications on android and ios using titanium acs cloudPush.
In the tutorial all the code and functions are placed in app.js. My problem is I want to add push notifications into a more complex app which has a tabGroup and so on. No matter where I place the eventlistener for the notifications it is not being triggered and the app will crash when I try to send a notification to it.
Has anyone implemented push notifications in a more complex app than a single app.js and could you show where I should put the event listener for my push notifications?
This problem was only on the Android version of the app. I was using the newest Titanium SDK but my version of Titanium CLI was not up to date, updating that finally got my notifications working on Android again

Phonegap push notification android, need opinion

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.

Categories

Resources