Page 1 of 1

Redirect to specific screen on different push notifications.

Posted: Wed Sep 03, 2014 3:12 pm
by mehtashail

I would like to redirect the app to a specific screen based on the push notification. For e.g. If the notification is "How are you doing today?" direct them to Screen X. If the notification is - "This is your daily reminder", direct them to Screen Y.

Is that feasible?

thanks


Redirect to specific screen on different push notifications.

Posted: Wed Sep 03, 2014 4:14 pm
by Evgene Karachevtsev

Hello Mehtashail,

Yes, you should hang the appropriate js code for Push notification event.


Redirect to specific screen on different push notifications.

Posted: Wed Sep 03, 2014 4:34 pm
by mehtashail

Evgene,
I should clarify the case I am talking about is when the user is not within the application. I thought the push notification event is only for when the user is within the app correct?


Redirect to specific screen on different push notifications.

Posted: Wed Sep 03, 2014 10:59 pm
by Yurii Orishchuk

Hi mehtashail,

Yes, push will work even when your app even not goes by this time..

But if user click on this certain push the app will loaded and push event will fire inside the app. And then you can handle this event and make logic you need(for example navigate to certain page).

Regards.


Redirect to specific screen on different push notifications.

Posted: Thu Sep 04, 2014 1:27 am
by mehtashail

Is there a way for me to know if the push notification event was triggered when the user is in the app or outside?


Redirect to specific screen on different push notifications.

Posted: Thu Sep 04, 2014 11:07 pm
by Yurii Orishchuk

Hi mehtashail,

Here is no direct way to do it.

But you can listen to following events and make logic you need:

1 "pause" triggers when app goes to pause. http://docs.phonegap.com/en/3.0.0/cor...

2 "resume" triggers when app goes from pause. http://docs.phonegap.com/en/3.0.0/cor...

Regards.


Redirect to specific screen on different push notifications.

Posted: Sat Aug 22, 2015 11:36 am
by A.W.H.