Page 2 of 3

Push json

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

Hi Maryna,

In the test settings the status parameter I use is a string 'sent' but when I attempt to replicate this in the mapping I get an error! Please find the service settings below.

service request:

Image

mapping:

Image

payload json:

Image


Push json

Posted: Tue Feb 04, 2014 8:52 am
by Joe Bohen

Hi Maryna, Have you had the chance to look at my last post? My mapping looks the same as your documentation!


Push json

Posted: Tue Feb 04, 2014 10:07 am
by Kateryna Grynko

Hi Joe,

Please try service Test, there must be en error description. Most probably, this is empty schedule.
Please add a request parameter 'schedule' with this value:pre{"scheduledTime":"2014-02-05 13:44:00.000","timeZone":"180"}/pre
https://getsatisfaction.com/apperyio/...


Push json

Posted: Tue Feb 04, 2014 10:46 am
by Joe Bohen

Hi, Katya, I get exactly the same result! I have shared the app 'testpush' with a href="mailto:support@appery.com" rel="nofollow"support@appery.com/a will you please take a look and advise.


Push json

Posted: Tue Feb 04, 2014 3:20 pm
by Joe Bohen

Hi Katya, Do you have any news?


Push json

Posted: Tue Feb 04, 2014 3:32 pm
by Kateryna Grynko

Hi Joe,

No, still working on it.


Push json

Posted: Tue Feb 04, 2014 6:38 pm
by Maryna Brodina

Hello Joe! payload and schedule should be object, not string. In mapping to payload should be the following code: prevar T = 'This is a Test!';
var D = '1';
return {"message": T , "badge": D };/preIn mapping to schedule prereturn {"scheduledTime":"2014-02-05 21:00:00.000","timeZone":"180"};/preBut if you send notifications immediately, delete schedule parameter from request parameters.


Push json

Posted: Tue Feb 04, 2014 10:27 pm
by Joe Bohen

Hi Maryna, Thanks for corrections which work partially. The push messages are delivered but scheduling doe's not work all messages no matter what the schedule settings deliver immediately!

Regards,
Joe


Push json

Posted: Wed Feb 05, 2014 3:30 pm
by Maryna Brodina

Hello! Working on it.


Push json

Posted: Wed Feb 05, 2014 4:05 pm
by Maryna Brodina

Hello! You send status=sent. That means it will be sent immediately no matter what is in schedule. Delete status parameter from request parameters or change it's value to wait instead sent. Here is more information http://docs.appery.io/documentation/b... (Sending push notifications)