4

using PhoneGap and the pushPlugin for notifications, is there a way to detect the notification when app is launched directly?

i.e, if someone clicks on the notification, the app launches and i can detect the notification info with the onNotificationAPN() function, but if the user ignores the notification and then open the app directly, even though it has the little red notification number the onNotificationAPN() isn't fired.

Mobiletainment
  • 22,201
  • 9
  • 82
  • 98
rpsep2
  • 3,061
  • 10
  • 39
  • 52
  • You want to detect if your app was launched via the notification, right? And you're also saying that if someone clicks on the notification, the onNotificationAPN callback is fired. So where's the problem? As soon as the user launches your app directly via the notification, onNotificationAPN will be fired and then you now. But I guess I didn't understanding you correctly. Some clarification would be desireable. – Mobiletainment Apr 04 '14 at 01:32
  • I have the same problem: I can know when someone started the app from the notification but when he starts the app directly, there is no way to know that is has not been started from notification since the call is asynchronous – alexislg Feb 10 '15 at 09:16
  • Did you solve this issue? – Ajoy Apr 08 '15 at 04:10
  • Have a look a this [answer](http://stackoverflow.com/questions/28507469/change-state-when-user-selects-notification-from-ios-notification-center-in-cord/29505929#29505929) – Ajoy Apr 08 '15 at 16:27

0 Answers0