Custom Push Data

Although an old thread, it might still be relevant.

Did you try to put the data in as follows:

        commands\_json =              {                 ["data"] =                      {    ["alert"] = "test",                         ["sound"] = "",                         ["custom"] = { a = "b" }                        }              }  

postData = json.encode(commands\_json)                  local params = {}         params.headers = headers         params.body = postData                    print("params are "..tostring(params))         network.request( "https://api.parse.com/1/push","POST",sendPushListener,params)          

This works for me (finally :).

I could then easily retrieve the table on the receiving end (notificationlistener) in corona like this:

        for k,v in pairs(event.custom) do             print("k = "..k.." and v = "..v)         end  

k would be the key (a) and v returns value “b”

I did put the custom field in the config.lua btw