eyesmoker
Posts: 0
Joined: Fri Jul 04, 2014 3:45 am

read payload for android after receiving push notification

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.

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

read payload for android after receiving push notification

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

Return to “Issues”