Page 1 of 1

push via restful service "Empty scheduled time"

Posted: Mon May 05, 2014 1:57 pm
by Shawn Johnson

Hello I have been trying to follow the following tutorial

http://docs.appery.io/documentation/b...

to push notification via restful

but my request is not working

I keep getting empty scheduled time

Image

Image

i tried to use the updated push api as well with the same result

few questions

do i need to send a scheduledTime if i want to send a push immediately


push via restful service "Empty scheduled time"

Posted: Mon May 05, 2014 4:36 pm
by Serhii Kulibaba

Hello Shawn,

According to documentation: http://docs.appery.io/documentation/b...

Use "schedule" param (not scheduled)


push via restful service "Empty scheduled time"

Posted: Mon May 05, 2014 5:03 pm
by Shawn Johnson

Hey Thanks,

but now i am getting an server error

{
"code": "PNMN000",
"description": "This wasn't supposed to happen but an error occurred. Please try again. If the error persists please let us know on the http://appery.io/forum or email us: a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a"
}


push via restful service "Empty scheduled time"

Posted: Mon May 05, 2014 5:54 pm
by Serhii Kulibaba

Did you fill all parameters? Please send us screenshot with them.


push via restful service "Empty scheduled time"

Posted: Mon May 05, 2014 6:20 pm
by Shawn Johnson

I did not fill out all the parameters, I filled out that ones I thought i needed

Image


push via restful service "Empty scheduled time"

Posted: Tue May 06, 2014 6:20 am
by Evgene Karachevtsev

Hello Shawn.

Sorry for delay, we are working on it at the moment. We will get back to you with update.


push via restful service "Empty scheduled time"

Posted: Tue May 06, 2014 4:15 pm
by Serhii Kulibaba

If you want send push notification immediately, just not add schedule request parameter. It works for me (see attached file)
Image


push via restful service "Empty scheduled time"

Posted: Tue May 06, 2014 6:36 pm
by Shawn Johnson

Hello,

Thank you.
Can someone please update the docs, the previous push via rest documentation does not mention that status is needed.

is a unique key, issued by the server that allows push notifications to be sent.
is the message text (mandatory).
is the number shown with the app icon in iOS (optional, if empty - badge will be not changed on device).
is the deviceId criteria for searching device.
is a custom field of _devices table.
is param1 criteria for searching device.
is the date when the push notification will be sent (truncated to minute).
boolean - parameter indicating whether the push notification should be sent in device time zone.
is the offset in minutes of time zone.

without status I could not send the push. I wasted a good bit of time on such a small thing


push via restful service "Empty scheduled time"

Posted: Tue May 06, 2014 6:45 pm
by Kateryna Grynko

Hi Shawn,

We'll add this. Sorry for the inconvenience.


push via restful service "Empty scheduled time"

Posted: Mon May 12, 2014 8:46 am
by Maryna Brodina

Hello!

We are sorry for inconvenience, that was pretty old tutorial and we deleted it.
Please use the following links
http://docs.appery.io/documentation/b...
http://docs.appery.io/tutorials/sendi...