Page 1 of 4

Redirect based on push notification

Posted: Fri Sep 06, 2013 4:07 pm
by Joe Clarke

Is there a way to embed a link in a push notification so that when a user clicks on the notification it takes them to a specific page within the application?


Redirect based on push notification

Posted: Fri Sep 06, 2013 5:14 pm
by Maryna Brodina

Hi, yes it's possible. I'll update.


Redirect based on push notification

Posted: Fri Sep 06, 2013 5:46 pm
by Joe Clarke

Awesome, looking forward to getting more information on this, I couldn't find anything in the documentation.


Redirect based on push notification

Posted: Fri Sep 06, 2013 6:47 pm
by Maryna Brodina

The easiest way is to use Push Notifications tab and sent the link from Message field. App should be created as shown in tutorial
but in item #8 you need to use this code:
codevar pageName = data.aps.alert;
Appery.navigateTo(pageName);/code
here navigateTo function is used.


Redirect based on push notification

Posted: Fri Sep 06, 2013 6:59 pm
by Joe Clarke

That doesn't seem to work because data.aps.alert only has something in it if you received the push notification while inside of the application.

I would like to be able to send a push notification that the users received outside of the application. When the user clicks on the notification it takes them to a specific place in the application instead of just the start page.


Redirect based on push notification

Posted: Fri Sep 06, 2013 7:21 pm
by Maryna Brodina

User can receive push notification only when app is opened or running in background (for example user clicked "Home" button, but didn't exit the app).


Redirect based on push notification

Posted: Fri Sep 06, 2013 7:47 pm
by Joe Clarke

On iOS I can close the app completely and still send myself a test push notification. I'm not sure about andriod but I would assume it would work the same way.


Redirect based on push notification

Posted: Fri Sep 06, 2013 7:49 pm
by Maryna Brodina

I think it's just running in background..


Redirect based on push notification

Posted: Fri Sep 06, 2013 7:50 pm
by Joe Clarke

Is there another staff member that you can ask to take a look at my question please?


Redirect based on push notification

Posted: Fri Sep 06, 2013 7:52 pm
by Maryna Brodina

Sure, I'll update.