Android push notification in notification bar.

  • 1
  • Question
  • Updated 7 years ago
It is possible that the push notification in android, reaching the status bar notification, the application being closed! and using PhoneGap build?
Photo of Mateo Menestrina

Mateo Menestrina

  • 27 Posts
  • 0 Reply Likes

Posted 7 years ago

  • 1
Photo of Bob Easterday

Bob Easterday

  • 174 Posts
  • 14 Reply Likes
Could you rephrase the question? I do not understand what you are asking.
Photo of Mateo Menestrina

Mateo Menestrina

  • 27 Posts
  • 0 Reply Likes
I am using GenricPush plugin (phonegap build). In an app for Android and iOS. In the push notification ios reach me correctly, although the application is closed or in the background.
But andorid not get to do that. I can only grab the notifications if the app is open

mateo
Photo of Bob Easterday

Bob Easterday

  • 174 Posts
  • 14 Reply Likes
This has been resolved. Please try again making sure you are building with phoneGap version 2.3.0 and that your config.xml references the GAPlugin as follows;

< gap:plugin name="GAPlugin" />
Photo of Mateo Menestrina

Mateo Menestrina

  • 27 Posts
  • 0 Reply Likes
Thank you very much man
It has worked well. A unique touch is that when the app is closed completely, and I click on the notification, the app tries to open but fails.

Any idea?

Mateo
Photo of Bob Easterday

Bob Easterday

  • 174 Posts
  • 14 Reply Likes
This is expected behavior. When the app is completely quit, there is no Activity available to process the notification action. In practice this should be a rare case since users will typically exit via the home button.