Page 1 of 1

read payload for android after receiving push notification

Posted: Fri Jul 04, 2014 5:23 am
by eyesmoker

Hi,

After receiving push notification, i would like to take user to a particular page in the app than going to home screen.

For android, When I print the data after receiving push notification "JSON.stringify( data )", I am just seeing the message from payload.

Is there any way that I can set some id in the payload that I can reuse to send to appropriate page after user clicks on the push notification message.

I haven't tried for IOS yet.


read payload for android after receiving push notification

Posted: Fri Jul 04, 2014 7:58 am
by Evgene Karachevtsev

Eyesmoker,

You can send only the message. You can use js code to analyze the received message (text ) and by results of the analysis you may send to the appropriate page (for example if the message begins or ends with the word "News" you need to open a page News, etc.)


read payload for android after receiving push notification

Posted: Fri Jul 04, 2014 3:55 pm
by eyesmoker

Thank you.