carpoolear icon indicating copy to clipboard operation
carpoolear copied to clipboard

App configuration

Open medrockstar opened this issue 5 years ago • 6 comments

Hi,

how we can configure phonegap app ? to get the correct URL, the App is freezing

Screenshot_20190314-205649

medrockstar avatar Mar 14 '19 19:03 medrockstar

In the dev.env.js or the prod.env.js depends on the kind of build your are trying to do.

p4bl1t0 avatar Mar 14 '19 20:03 p4bl1t0

But how the mobile App is connected to the localhost backend ?

medrockstar avatar Mar 14 '19 20:03 medrockstar

Setting the API_URL

https://github.com/STS-Rosario/carpoolear/blob/master/config/dev.env.js#L6

p4bl1t0 avatar Mar 14 '19 22:03 p4bl1t0

yes this is what I did before, but I think the mobile app can't connect to the localhost.

medrockstar avatar Mar 14 '19 22:03 medrockstar

Never a mobile phone could connect to a localhost address, you have to publish using a local IP or a service like nip.io

p4bl1t0 avatar Mar 14 '19 22:03 p4bl1t0

Assuming this is not a real issue then?

carlosabud avatar May 11 '19 01:05 carlosabud