Page 1 of 1
Handling push notification information
Posted: Wed Oct 29, 2014 11:40 am
by Diego Dillenburg Bueno
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.
Handling push notification information
Posted: Wed Oct 29, 2014 1:24 pm
by Maryna Brodina
Hello!
On Push notification event you can read sent message from data.aps.alert variable using JS.
Handling push notification information
Posted: Wed Oct 29, 2014 1:33 pm
by Diego Dillenburg Bueno
Could I have a sample? I triet it but couldn't make it work.
Handling push notification information
Posted: Thu Oct 30, 2014 3:12 am
by Yurii Orishchuk
Hi Diego,
Please pass this tutorial:
http://devcenter.appery.io/tutorials/...
There you can find examples of handling Push notifications data and others.
Regards.
Handling push notification information
Posted: Thu Oct 30, 2014 11:34 am
by Diego Dillenburg Bueno
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?
Handling push notification information
Posted: Fri Oct 31, 2014 12:19 am
by Yurii Orishchuk
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.