Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread PhoneGAP and external database server
Tue, Feb 18 2014 7:39 AMPermanent Link

Anders Westberg

Avatar

I have an EWB app running under Android PhoneGAP but of course it attempts database access locally.

Can I redirect the database http requests to an external server?

BaseURL in TDataBase?
Tue, Feb 18 2014 8:55 AMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

I have mine setup so when debuggin locally I use:

Database.BaseURL := 'http://localhost:12009';

and when I deploy my app I change it to:

Database.BaseURL := 'http://mydomain.co.uk:12009';


Chris Holland
[Team Elevate]

On 18/02/2014 12:39, Anders Westberg wrote:
> I have an EWB app running under Android PhoneGAP but of course it attempts database access locally.
>
> Can I redirect the database http requests to an external server?
>
> BaseURL in TDataBase?
>
Tue, Feb 18 2014 12:06 PMPermanent Link

Anders Westberg

Avatar

Did you need to do any configuration in PhoneGap config.xml to get around access restrictions?

Chris Holland wrote:

I have mine setup so when debuggin locally I use:

Database.BaseURL := 'http://localhost:12009';

and when I deploy my app I change it to:

Database.BaseURL := 'http://mydomain.co.uk:12009';


Chris Holland
[Team Elevate]

On 18/02/2014 12:39, Anders Westberg wrote:
> I have an EWB app running under Android PhoneGAP but of course it attempts database access locally.
>
> Can I redirect the database http requests to an external server?
>
> BaseURL in TDataBase?
>
Anders Westberg
Diginet AB
Wed, Feb 19 2014 4:26 AMPermanent Link

Matthew Jones

> Did you need to do any configuration in PhoneGap config.xml to get
> around access restrictions?

No, because there are no restrictions. The browsers have restrictions because they
don't like you to access data from a different site than you loaded the page from,
but that doesn't apply in PhoneGap because you didn't load the page from anywhere
(well, except locally) thus there is no restriction on what you can call.

/Matthew Jones/
Image