Hi,
I have trouble for sending out custom json for corona push notification. What I’m try to achieve is, to insert custom json to existing gcm json format for sending out push notification. So that, it can support application build using android native, phonegap or corona in one time message sending.
Here the working json format for app build using android native :
{ "message": "msg body dihantar oleh azizi", "payload": { "message": "msg body dihantar oleh azizi", "title": "ini adalah title", "alert": "msg body dihantar oleh azizi" }, "collapse\_key": "do\_not\_collapse", "from": "6200xxxx18340", "msgcnt": "12", "foreground": true, "event": "message" }
I have inserted the custom json like below. But the customJson is not receive by corona.
{ "message": "msg body dihantar oleh azizi", "payload": { "message": "msg body dihantar oleh azizi", "customJson": [{ "alert": "ayam", "string": "ini adalah string..just for corona" }], "title": "ini adalah title", "alert": "msg body dihantar oleh azizi" }, "collapse\_key": "do\_not\_collapse", "from": "6200xxxx18340", "msgcnt": "12", "foreground": true, "event": "message" }
How do i make it readable by corona.?