Please i’ve been having issue extracting title and message from a push payload.
My push payload is this
{"google.sent_time":1509962407640,"grp_msg":"","title":"Thank you","alert":"Thank you so much","vis":"1","custom":"{\"i\":\"7715aff8-4fca-4d5d-afc3-57dfdacc1574\"}","pri":"5","google.message_id":"0:1509962407645917%7f7d296df9fd7ecd"}
Thanks Uldis. I’ve already posted the content of the payload in my previous thread and it baffles me why i cannot extract the content of the payload for example payload.title
Below is the output of the console.log(JSON.stringify(payload));
"{\"google.sent_time\":1509964250115,\"grp_msg\":\"\",\"title\":\"This messg\",\"alert\":\"This is content\",\"vis\":\"1\",\"custom\":\"{\\\"i\\\":\\\"ff1f9d2e-48ad-49f5-9d5d-7d873a7560cd\\\"}\",\"pri\":\"5\",\"google.message_id\":\"0:1509964250123641%7f7d296df9fd7ecd\"}"
I still get a null output when i try payload.title