I am creating the android and iphone app using Phonegap Build in which phonegap "GenericPush" plugin is used to get the notifications from the server.All is working perfectly in iPhone app where push notification is received from APN server and notification get listed in the notification list of iPhone's device.
But in android,the notification is successfully coming from the GCM and get listed only when app is running but doesn't get listed on the "Status Bar" of android.
How to receive the notification from GCM in "Status Bar" of android device using only Phonegap Build..?..or .Is there any option to set some settings tags in "config.xml" of PG Build to achieve this "status bar notification"..??..
But in android,the notification is successfully coming from the GCM and get listed only when app is running but doesn't get listed on the "Status Bar" of android.
How to receive the notification from GCM in "Status Bar" of android device using only Phonegap Build..?..or .Is there any option to set some settings tags in "config.xml" of PG Build to achieve this "status bar notification"..??..
- 2 Posts
- 0 Reply Likes
Posted 7 years ago
- 174 Posts
- 14 Reply Likes
Hi Salman,
We hope to have this functionality in place in the next few days. The initial release did not support background notifications on Android, but we will be adding that capability shortly.
We hope to have this functionality in place in the next few days. The initial release did not support background notifications on Android, but we will be adding that capability shortly.
- 2 Posts
- 0 Reply Likes
Ohhh..thats really Greattttttttt..Many many many thanks for adding this functionality.I am proud of PG Build.I was going to create custom Android project in eclipse to get the "status bar notification". But now i will wait for this feature to be added in the PG Build.
Seriously it will save a lot of time to create custom Android Project in Eclipse and do all that boring stuff.I really love to upload my www.zip and PG Build give me my desired APK in 10 sec..thanks again for this wonderful platform.
BTW, Currently PG Build supports Phonegap Version 2.3.0, Are you guys adding this feature in PG 2.4.0..???
Seriously it will save a lot of time to create custom Android Project in Eclipse and do all that boring stuff.I really love to upload my www.zip and PG Build give me my desired APK in 10 sec..thanks again for this wonderful platform.
BTW, Currently PG Build supports Phonegap Version 2.3.0, Are you guys adding this feature in PG 2.4.0..???
- 174 Posts
- 14 Reply Likes
We expect to add support for version 2.4.0 in the near future. Stay tuned!
- 1 Post
- 0 Reply Likes
- 3 Posts
- 0 Reply Likes
Yes, it's would be very useful since it's an important functionality to notify users who don't want to check a specific app every couple minutes but rather have to receive the notification instead.
- 24 Posts
- 2 Reply Likes
Hi,
Is there any update as to when it will be possible to place notifications into the notification bar with PhoneGap Build?
Is there any update as to when it will be possible to place notifications into the notification bar with PhoneGap Build?
- 24 Posts
- 2 Reply Likes
Hey, thanks for taking the time to reply! We were using build so as to avoid some of the hassle of building for individual devices at the command line, but this is a pretty fundamental gap in the offering - so yeah, looks like we will either go the same way you have - or ditch it for a different framework :( Cheers!
- 174 Posts
- 14 Reply Likes
The Generic Push Plugin now places notifications in the status bar if the app is in the back ground on Android. If you are not seeing this, please let me know your App ID, and I will go take a look.
- 24 Posts
- 2 Reply Likes
Hi Bob! Thanks for the update - this must have slipped past me (might be worth putting this somewhere more prominent as it's not immediately obvious from the docs, etc?). I'll investigate and see if we can achieve what we need with generic push!
- 174 Posts
- 14 Reply Likes
very good. Please let me know the outcome.
- 24 Posts
- 2 Reply Likes
Hi Bob,
Is there a way to use the plugin to display a local notification (badge number in iOS, status bar in Android) outside the context of push notifications - e.g. when something happens in an app that is running in the background and it wants to attract user attention without doing an alert?
Is there a way to use the plugin to display a local notification (badge number in iOS, status bar in Android) outside the context of push notifications - e.g. when something happens in an app that is running in the background and it wants to attract user attention without doing an alert?
- 2 Posts
- 0 Reply Likes
Is it fixed now ? trying to implement it in android.
- 24 Posts
- 2 Reply Likes
As far as I can tell you can only do this if you are using push notifications (in which case it's mostly automated) - I'm working on something using this at the moment and will update you if I can/can't get it to work!
- 2 Posts
- 0 Reply Likes
Hey thanks for the update. Do keep posted. Looking forward to it.
- 24 Posts
- 2 Reply Likes
Apologies - haven't had time to get back to this yet!
- 2 Posts
- 1 Reply Like
Any news on this? I'd like to use local push notifications (to notify the user while the app is in the background).
- 174 Posts
- 14 Reply Likes
I think I should clear up some confusion. Local Notifications and Push Notifications, while they can share the status bar, Are not the same thing.
The PushPlugin allows the receipt of push notifications. Local Notifications should be handled in a different plugin, designed for that purpose.
The PushPlugin allows the receipt of push notifications. Local Notifications should be handled in a different plugin, designed for that purpose.
- 2 Posts
- 1 Reply Like
Would you mind directing me to a plugin that would handle that? My goal is to achieve status bar notifications initiated by the app (so, locally) in android and ios using only PG:B. Is this possible?
Thank you very much for your quick answer!
Thank you very much for your quick answer!
- 174 Posts
- 14 Reply Likes
There is a 3rd party plugin on build for local notifications. I haven't tried it so it may or may not meet your needs. Its currently listed as working with 2.5.0 - 2.9.0. You'd have to contact the author to determine if/when they willl add support for 3.0.0+.
https://build.phonegap.com/plugins/48
https://build.phonegap.com/plugins/48
- 24 Posts
- 2 Reply Likes
According to the docs of that plugin, it's aimed at iOS only? It seems to support setBadgeNumber, but will that pop an icon in the notification/status bar on Android?
- 87 Posts
- 3 Reply Likes
Matt, apparently there is one here: https://github.com/katzer/cordova-plu... (it is not in phonegap build yet so we should try to ask the author to submit it)
- 24 Posts
- 2 Reply Likes
I've posted an issue to ask the author - https://github.com/katzer/cordova-plu... - if they're not planning to do this, I may look into creating a fork for it myself as it's a pretty massive hurdle for us at present.
- 24 Posts
- 2 Reply Likes
And he's replied saying he's going to aim to add PGB support in the next build!
- 12 Posts
- 3 Reply Likes
Use PushBots
I followed the guidelines here : https://pushbots.com/developer/docs/p...
And was up and running with in no time.
They also have good support.
I followed the guidelines here : https://pushbots.com/developer/docs/p...
And was up and running with in no time.
They also have good support.
Related Categories
-
PhoneGap Build
- 15111 Conversations
- 275 Followers





