Nick B
Posts: 0
Joined: Sun Jun 29, 2014 10:34 pm

Whitelisting external hosts

If I use an external db to get data for my app, can you confirm I need to whitelist the external url where the db is located for the Android and iOS builds?

For example, for iOS, there is Externalhosts that needs to be edited. Is there a way to edit this Externalhosts in Appery or do I need to export it to an xcode project first and edit it there? How does it work on Android?

Thanks for your help!

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

Whitelisting external hosts

Hello Nick,

External database must have REST API. If your database has REST API, you can use it. You shouldn't add anything addition to it

Nick B
Posts: 0
Joined: Sun Jun 29, 2014 10:34 pm

Whitelisting external hosts

Hi Evgene,

Thanks for your reply. I should clarify: Getting the data works fine using the REST API I put on the DB, it's sending the data that is not working.

When someone taps a button, a $.post action is executed to a php on my server to update a field in my DB. This action does not seem to get executed and I read that my server would need to be whitelisted so I can send data from my iOS/Android app to the php file on my external server.

Is that possible?

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

Whitelisting external hosts

Hi Nick,

I'd recommend that you use Appery.io REST services (http://devcenter.appery.io/documentat...) and enable proxy (http://devcenter.appery.io/documentat...).

However, code$.post/code works in native app, you can face issues only in browser test when do cross-domain requests (http://devcenter.appery.io/documentat...).

Return to “Issues”