Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Push json

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Push json

Hi Joe,

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

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Push json

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

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

Push json

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

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Push json

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

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Push json

Hi Joe,

Please post a screenshot of the response.

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Push json

Hi Katya,

I get:

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

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Push json

Hi, katya, have you an update?

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

Push json

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?

Joe Bohen
Posts: 0
Joined: Wed Nov 28, 2012 11:28 am

Push json

Write a comment...

Return to “Issues”