Page 1 of 1

Whitelisting external hosts

Posted: Tue Jul 29, 2014 9:52 am
by Nick B

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!


Whitelisting external hosts

Posted: Tue Jul 29, 2014 10:39 am
by Evgene Karachevtsev

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


Whitelisting external hosts

Posted: Tue Jul 29, 2014 7:54 pm
by Nick B

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?


Whitelisting external hosts

Posted: Tue Jul 29, 2014 8:43 pm
by Kateryna Grynko

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