Page 1 of 1
Working with proprietary web service from mobile preview
Posted: Tue Apr 28, 2015 2:18 am
by Mark H
What I'm trying to do is to have a web service get called when the mobile app starts. And I would like to test it using the mobile preview gui.
I created an Appery service that calls a proprietary enterprise web service via the proxy. When I test the web service in the Appery service definition screen it works.
But when I test using the mobile preview with the service configured to get called on deviceready the gui displays but the web service isn't getting called.
Should I expect this to work?
Working with proprietary web service from mobile preview
Posted: Tue Apr 28, 2015 6:09 am
by Serhii Kulibaba
Hello,
Could you check are there any errors in console? This: http://devcenter.appery.io/documentat... should help.
Working with proprietary web service from mobile preview
Posted: Tue Apr 28, 2015 6:10 pm
by Mark H
Hi Sergiy
Stepping through the generated code the deviceready event handler is getting registered in startScreen_deviceEvents but the event is never being triggered.
If I add the same actions to the startScreen_OnLoad they are triggered.
I am testing with both Chrome Version 42.0.2311.90 m and FireFox 37.0.2.
Working with proprietary web service from mobile preview
Posted: Tue Apr 28, 2015 7:36 pm
by Mark H
One other issue:
Code: Select all
"POST [url=https://api.appery.io/rest/1/proxy/tunnel]https://api.appery.io/rest/1/proxy/tu...[/url] 400 (Bad Request)"
This occurs when the POST is called in mobile preview but not from the service definition screen.
The console doesn't report any other errors.
Working with proprietary web service from mobile preview
Posted: Wed Apr 29, 2015 1:27 pm
by Serhii Kulibaba
- Use "page show" event if your service uses UI components.
- Please send us full service response from the network tab. http://prntscr.com/6zimjp
Working with proprietary web service from mobile preview
Posted: Thu Apr 30, 2015 3:43 pm
by Mark H
The service isn't using UI components yet.
The image should be at the link above.
Working with proprietary web service from mobile preview
Posted: Thu Apr 30, 2015 3:52 pm
by Mark H
Working with proprietary web service from mobile preview
Posted: Thu Apr 30, 2015 3:54 pm
by Mark H
Working with proprietary web service from mobile preview
Posted: Fri May 01, 2015 2:05 am
by Yurii Orishchuk
Hi Mark,
It seems this is response from your 3rd party service..
Could you please give us your app public link and describe steps to reproduce this problem in your app?
We will check it.
Regards.
Working with proprietary web service from mobile preview
Posted: Fri May 01, 2015 2:05 am
by Yurii Orishchuk
Hi Mark,
It seems this is response from your 3rd party service..
Could you please give us your app public link and describe steps to reproduce this problem in your app?
We will check it.
Regards.