Page 1 of 3
REST services in Android native
Posted: Wed Dec 18, 2013 2:06 am
by AricCaley
Rest services do not work with android native app, or in any other browser except Chrome when using the --disable-web-security option on startup.
I understand it not working in browsers but I thought from a native app you dont have the cross-site restrictions?
REST services in Android native
Posted: Wed Dec 18, 2013 2:13 am
by maxkatz
If the service doesn't support cross-domain calls, it won't work in in the browser. You could always run it with Appery.io proxy on. The flag that you mention above I believe is only available in Chrome.
As for Android -- what version you are running on?
REST services in Android native
Posted: Wed Dec 18, 2013 2:38 am
by AricCaley
Latest version.. Android 4.4.2 on a Nexus 4.
I don't care about it running in the browser (chrome is fine for development). I need it to work on a mobile device.
How do I debug on mobile?
REST services in Android native
Posted: Wed Dec 18, 2013 4:06 am
by AricCaley
Also I cannot use the appery.io proxy as the option is not there, since I am using a custom javascript to do oauth authentication.
REST services in Android native
Posted: Wed Dec 18, 2013 8:06 am
by Maryna Brodina
Hello! Do you install app on device or use Appery.io Tester? What address you call http or https? If https what certificate is there? If there is a self signed certificate it won't work.
If you use custom javascript to do oauth authentication it would be a problem to use Appery.io proxy. When you use proxy it's better to work with REST services than custom JS. If you need custom JS in service you can use Generic service.
REST services in Android native
Posted: Wed Dec 18, 2013 8:09 am
by AricCaley
I've tried both the appery.io tester app, and installing a native apk. The api calls are https (the calls are working in chrome, as well as with other separate clients. Our API is functional).
Yes, I am using generic services and then I make the oauth call in there.
REST services in Android native
Posted: Wed Dec 18, 2013 10:38 am
by Maryna Brodina
Could you clarify what certificate you have? It won't work if there is a self signed certificate, it's a PhoneGap restriction.
REST services in Android native
Posted: Wed Dec 18, 2013 12:31 pm
by AricCaley
I dont think so. It was issued by "Go Daddy Secure Certification Authority".. if you check it with http://www.digicert.com/help/, the domain is: https://demo.illuminateed.com. Seems valid to me.
REST services in Android native
Posted: Wed Dec 18, 2013 1:04 pm
by Maryna Brodina
Please share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.
REST services in Android native
Posted: Wed Dec 18, 2013 1:35 pm
by AricCaley
Done. Its called Illuminate Mobile