Giannis Pelelis
Posts: 0
Joined: Tue Nov 12, 2013 8:20 pm

Empty scheduled time error on push notification

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"
}
}

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

Empty scheduled time error on push notification

Hi Giannis,

Please post the code that you use to send Push.

Giannis Pelelis
Posts: 0
Joined: Tue Nov 12, 2013 8:20 pm

Empty scheduled time error on push notification

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

Image

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

Empty scheduled time error on push notification

Giannis,

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

Giannis Pelelis
Posts: 0
Joined: Tue Nov 12, 2013 8:20 pm

Empty scheduled time error on push notification

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

vcalero
Posts: 0
Joined: Wed Nov 13, 2013 12:20 pm

Empty scheduled time error on push notification

I find this solution for the same problem:

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

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

Empty scheduled time error on push notification

Hi,

Glad it's working!

Govind Chunchula
Posts: 0
Joined: Fri Jun 13, 2014 6:06 am

Empty scheduled time error on push notification

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

Empty scheduled time error on push notification

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...

Govind Chunchula
Posts: 0
Joined: Fri Jun 13, 2014 6:06 am

Empty scheduled time error on push notification

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.

Return to “Issues”