-
Notifications
You must be signed in to change notification settings - Fork 21
Run on devices #10
Comments
The issue is knowing where to point to the server. On the iOS sim, it's easy enough, as it's localhost. On the Android emulator there is a built in IP that magically points to the host machine. With a device, the server is the IP of the serving machine, on the interface that happens to be available to the device trying to connect to it, and there could be more than one. It's an issue that plagues the PhoneGap developer app as well, but unlike the developer app, it's baked into config.xml at build time, not entered into a text field. So you can't just "try a couple till it works", heh. I have some ideas on how to handle this, but haven't had a chance to really sit down and work out the issue yet. Feel free to ping me on Slack if you have any suggestions. |
Hello DevGeeks, I found it cool to use React and PhoneGap to build an App until i saw this issue, is there any other way to combine PhoneGap and React to build production-ready Apps ? |
You can always manually set the IP in config.xml to the IP of your machine.
What this template cannot do at present is automatically do that.
Keep in mind, it is only the hot reloading that is not currently easily
available on devices. It is very possible to use this template to write a
production app with PhoneGap and React. I have done so :)
…On Fri, 21 Apr 2017 at 21:58, MECHERI Akram ***@***.***> wrote:
Hello DevGeeks,
I found it cool to use React and PhoneGap to build an App until i saw this
issue, is there any other way to combine PhoneGap and React to build
production-ready Apps ?
I Really think this would take PhoneGap to a whole new level !
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAh39zKWw0F3QARiWFdV8bxPf5yG_epaks5ryJnOgaJpZM4K9_RE>
.
|
Hi thank you for the template,today I managed to solve one problem with hot reloading on device
that takes care of the address in config.xml
Due to time limit, could not fork and submit pull request, please add it to code base. |
Awesome! You made my day |
Any chance to get this running on devices too?
The text was updated successfully, but these errors were encountered: