Page 1 of 2

Empty scheduled time error on push notification

Posted: Mon Nov 18, 2013 7:34 pm
by Giannis Pelelis

Testing a push notification via REST Service ,filled only with a message payload returns this error.But I want my message to be send instantly

{
"status":"400 Bad Request",
"url":"https://api.appery.io/rest/push/msg",
"response":{
"code":"PNMN101",
"description":"Empty scheduled time"
}
}


Empty scheduled time error on push notification

Posted: Mon Nov 18, 2013 7:49 pm
by Kateryna Grynko

Hi Giannis,

Please post the code that you use to send Push.


Empty scheduled time error on push notification

Posted: Tue Nov 19, 2013 6:20 pm
by Giannis Pelelis

Now I get {
"status":"400 Bad Request",
"url":"https://api.appery.io/rest/push/msg",
"response":{
"code":"PNMN007",
"description":"Serialization error"
}
}

Image


Empty scheduled time error on push notification

Posted: Tue Nov 19, 2013 10:12 pm
by Kateryna Grynko

Giannis,

Could you please post a full screenshot? I can't see header parameters.


Empty scheduled time error on push notification

Posted: Tue Nov 19, 2013 10:15 pm
by Giannis Pelelis

It's ok,I was doing some experiments with push and I solved them :)


Empty scheduled time error on push notification

Posted: Wed Dec 04, 2013 7:35 pm
by vcalero

I find this solution for the same problem:

https://getsatisfaction.com/apperyio/...


Empty scheduled time error on push notification

Posted: Wed Dec 04, 2013 8:25 pm
by Kateryna Grynko

Hi,

Glad it's working!


Empty scheduled time error on push notification

Posted: Fri Jun 13, 2014 1:24 pm
by Govind Chunchula

I got the same error. Please help to resolve

Here is the code

curl -X POST \
-H "X-Appery-Push-API-Key:MyKey" \
-H "Content-Type: application/json" \
-d '{"payload":{"message" : "test"}}' \
https://api.appery.io/rest/push/msg


Empty scheduled time error on push notification

Posted: Fri Jun 13, 2014 3:03 pm
by Evgene Karachevtsev

Hello Govind,

You should specify parameters:
"status": "sent",
"schedule": {"scheduledTime":"","timeZone":""}

With this settings message will be sent immediately. Please take a look at this documets:
http://devcenter.appery.io/documentat...


Empty scheduled time error on push notification

Posted: Mon Jun 16, 2014 12:27 pm
by Govind Chunchula

Hi,

I have an issue with push notification custom messages and load that perticular page when click on notification alert.

Please help on this.

// Message JSON
JSONObject dataJSON = new JSONObject().put("message", alertMessage).put("raw_data", messageJSON);

// Payload
JSONObject payloadJSON = new JSONObject();
payloadJSON.put("payload", dataJSON);
payloadJSON.put("status", "sent");

// Sending Message using java httppost

In push notification event i wrote alert(JSON.stringify(data));
Here i am getting aps object with alert only. Not my custom data.

Please help on this.

Thanks.