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

Push json

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

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

Push json

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

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

Push json

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

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

Push json

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.

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

Push json

Hi Katya, Do you have any news?

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

Push json

Hi Joe,

No, still working on it.

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

Push json

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.

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

Push json

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

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

Push json

Hello! Working on it.

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

Push json

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)

Return to “Issues”