It worked on the simulator because in the simulator, localhost is your
machine with the local server and the simulator.
But when you install it into a device, localhost is the phone, and you
don't have the server in your phone.
As Simon told you, you have to use the ip of your server, if you can
connect the device to the same network you should use something like
"192.168.1.XXX" (you can see the server ip in the network preferences)
On 10 mayo, 16:29, Simon MacDonald <
simon.macdon...@gmail.com> wrote:
> I'm surprised that it ever worked. If you try to connect to
> localhost:8080 on your device it will attempt to open a connection on
> port 8080 on your device. You'll need to change localhost to the IP
> address or hostname of your server.
>
> Simon Mac Donaldhttp://
hi.im/simonmacdonald