Page 1 of 3

Push json

Posted: Sat Feb 01, 2014 9:08 am
by Joe Bohen

Hi,

What is the minimum json message configeration in order to send a push message I am attempting to send push messages from a http web request but I am getting a bad request 400 error message. My json is:

{
"payload": {
"message": "Hello World!",
"badge": "7"
}
}

Do I have to add filter settings or should this work?

Regards,
Joe


Push json

Posted: Sat Feb 01, 2014 9:33 am
by Alena Prykhodko

Hi Joe,

What can you see on console Network tab? Please send us screenshot.
Also show us Sevice Settings, Response and Request tabs.


Push json

Posted: Sat Feb 01, 2014 10:28 am
by Joe Bohen

Hi Alena,

I am carrying out the request from an external .net application! I am able to do this with the Appery database.

Regards,
Joe


Push json

Posted: Sat Feb 01, 2014 11:09 am
by Alena Prykhodko

Joe, please see the tutorial http://docs.appery.io/documentation/b...


Push json

Posted: Mon Feb 03, 2014 10:39 am
by Joe Bohen

Hi Alena,

I am getting a Serialization error when sending a push message would you please look at the screen shot below and see if you are able to spot the error.
Image


Push json

Posted: Mon Feb 03, 2014 2:47 pm
by Kateryna Grynko

Hi Joe,

Please post a screenshot of the response.


Push json

Posted: Mon Feb 03, 2014 3:12 pm
by Joe Bohen

Hi Katya,

I get:

{"code":"PNMN007","description":"Serialization error"}


Push json

Posted: Mon Feb 03, 2014 10:30 pm
by Joe Bohen

Hi, katya, have you an update?


Push json

Posted: Mon Feb 03, 2014 10:33 pm
by Maryna Brodina

Hello! Sorry for delay. The value of status parameter shouldn't be array pre{"status": "sent"}/pre just string "sent". Perhaps there are some other issues with payload, could you post screenshots of service settings and mapping?


Push json

Posted: Mon Feb 03, 2014 11:18 pm
by Joe Bohen

Write a comment...