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

auto rest

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.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

auto rest

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

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

auto rest

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

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

auto rest

thanks Evgene, its looking good :)

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

auto rest

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

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

auto rest

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.

Michael4771079
Posts: 0
Joined: Sat Jul 21, 2012 2:03 pm

auto rest

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

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

auto rest

Return to “Issues”