Joe Clarke
Posts: 0
Joined: Fri Sep 06, 2013 4:05 pm

Redirect based on push notification

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?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Redirect based on push notification

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

Joe Clarke
Posts: 0
Joined: Fri Sep 06, 2013 4:05 pm

Redirect based on push notification

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Redirect based on push notification

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.

Joe Clarke
Posts: 0
Joined: Fri Sep 06, 2013 4:05 pm

Redirect based on push notification

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Redirect based on push notification

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).

Joe Clarke
Posts: 0
Joined: Fri Sep 06, 2013 4:05 pm

Redirect based on push notification

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.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Redirect based on push notification

I think it's just running in background..

Joe Clarke
Posts: 0
Joined: Fri Sep 06, 2013 4:05 pm

Redirect based on push notification

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

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Redirect based on push notification

Sure, I'll update.

Return to “Issues”