Diego Dillenburg Bueno
Posts: 0
Joined: Mon Oct 20, 2014 1:42 pm

Handling push notification information

Hello,

I'm trying to handle push notifications into my app, I can send and receive them with no problem, the matter is: how do I handle the data that I input on the push? Like: how do I manage this push to open an URL or go to a specific page of my app? I've read I could access the push data through data.aps.alert, but this hasn't worked.

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

Handling push notification information

Hello!

On Push notification event you can read sent message from data.aps.alert variable using JS.

Diego Dillenburg Bueno
Posts: 0
Joined: Mon Oct 20, 2014 1:42 pm

Handling push notification information

Could I have a sample? I triet it but couldn't make it work.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Handling push notification information

Hi Diego,

Please pass this tutorial:

http://devcenter.appery.io/tutorials/...

There you can find examples of handling Push notifications data and others.

Regards.

Diego Dillenburg Bueno
Posts: 0
Joined: Mon Oct 20, 2014 1:42 pm

Handling push notification information

Thanks, that really helped. A last question: can I pass at the payload more arguments than message and badge? i.e. can I pass an additional value so that the push redirects to a specific part of my app?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Handling push notification information

Hi Diego,

Unfortunatly no. Push designed to inform about new info.. And not about type of this info..

But you can send in end of message some info like "car 3425" then parse it.. In this case it could mean - navigate to "car" page and load "3425" car.

Regards.

Return to “Issues”