Page 2 of 2

auto rest

Posted: Mon Jul 21, 2014 8:21 pm
by Evgene Karachevtsev

Michael,

Unfortunately there is no ready-made script. This is custom logic and its implementation is involved by the user. You may do this without the server code. On the event success for create_service, you should call service to send customer's push using this api: http://devcenter.appery.io/documentat...
And send push on the right device or group of devices. You should handle this push to the event Push notification and call the correct code to update.


auto rest

Posted: Mon Jul 21, 2014 8:50 pm
by Michael4771079

OK Evgene,
that better logic, but I need to check if I got it.

user sends order to db, on success a push is sent to shop owners app,
which triggers a call service from the orders db to read order,

sorry if it looks like I may be checking the apparent obvious,
but some answers on here are more difficult to decipher than the problem.

forgive my directness, just under pressure as usual :l

kind regards


auto rest

Posted: Mon Jul 21, 2014 9:06 pm
by Evgene Karachevtsev

Michael,

Approximately so. You may watch our video tutorial about working with push notification, it should clarify tour questions: http://youtu.be/aHFVOBGRLx8?list=PLdU...


auto rest

Posted: Mon Jul 21, 2014 9:11 pm
by Michael4771079

thanks Evgene, its looking good :)


auto rest

Posted: Tue Jul 22, 2014 4:45 pm
by Michael4771079

Hi Evgene,
I have tried to implement the above but getting error in console, but its very close.
this is what I have done

on success of put service I invoked a push service the push works in the tester tab
on screen "freds" I added an event for push to run "fredsorders Read service"
but errors in console, see screenshot

I have the app running on ipad and Iphone, sending order from iphone

on ipad with freds screen open if I run the test in the builder the service starts to run and the app is getting something because the total price gets populated but nothing else

can you take a look?

console error

Image

testtab success

Image

Image


auto rest

Posted: Thu Jul 24, 2014 6:59 am
by Kateryna Grynko

Hi Michael,

Could you please post a screenshot where we can see what parameters you pass to server? Most probably, you pass an incorrect json.


auto rest

Posted: Thu Jul 24, 2014 7:13 am
by Michael4771079

Katya,
I got the push to work but the service is returning an error, the screenshots are here.
https://getsatisfaction.com/apperyio/...
thanks very much


auto rest

Posted: Thu Jul 24, 2014 12:33 pm
by Evgene Karachevtsev