AricCaley
Posts: 0
Joined: Thu Jul 18, 2013 11:22 pm

REST services in Android native

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?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

REST services in Android native

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?

AricCaley
Posts: 0
Joined: Thu Jul 18, 2013 11:22 pm

REST services in Android native

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?

AricCaley
Posts: 0
Joined: Thu Jul 18, 2013 11:22 pm

REST services in Android native

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.

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

REST services in Android native

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.

AricCaley
Posts: 0
Joined: Thu Jul 18, 2013 11:22 pm

REST services in Android native

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.

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

REST services in Android native

Could you clarify what certificate you have? It won't work if there is a self signed certificate, it's a PhoneGap restriction.

AricCaley
Posts: 0
Joined: Thu Jul 18, 2013 11:22 pm

REST services in Android native

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.

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

REST services in Android native

Please share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.

AricCaley
Posts: 0
Joined: Thu Jul 18, 2013 11:22 pm

REST services in Android native

Done. Its called Illuminate Mobile

Return to “Issues”