-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PhoneGap Developer not updating changes (iPhone) #291
Comments
Thanks a lot for the detail! Before I dive into random suggestions, have you updated to the latest PhoneGap Developer App and the latest PhoneGap CLI? |
Thanks for the reply! At least Also I just noticed that if I make changes to a file and save it while using the Developer App, the "connecting to device" blinks for a second and then changes back to "device ready". So the connection seems to be ok, the changes just don't show without re-installing the app. |
Thanks for the info @Tuuuukka. The fact that is does auto-reload ("connecting to device" flickers, indicating a refresh) but it does not update the app's content is interesting. I'm not sure if it's related, but #292 is having a different issue on an iPhone 5. I'm looking around for an iPhone 5 device to test on, so I'll report back on what I find. |
Thanks again @mwbrooks, I will check that one out. Today I set up a new server on Ubuntu (with a new IP address of course) and connected to it from my iPhone. It actually showed the app from the Mac server which wasn't even running at the time. And again, after re-installing the Developer App and reconnecting to the (Ubuntu) server, the App was refreshed just fine. |
I'm having a similar issue. For some reason I save a file, and the CLI displays the message "file changed" but the app does not refresh. Sometimes even when tapping the app with 4 fingers the app refreshes but it's still using the old files. I'm using latest version of the CLI, and the iOS app. I've given up on using the app for development except for the ocasional device testing. |
Hi @PierBover thanks for the info. It's actually very useful to know that the file change was detected by the CLI. What operating system is your computer running? |
I'm on OSX 10.9 |
BTW, this behaviour is not consistent but I haven't been able to detect what triggers it. It seems almost random. |
Hi @Tuuuukka and @PierBover We've made some updates to the app for the reload issue. Please update your app and see if that works for you. |
Closing since we haven't seen very much activity on this issue. Feel free to reopen. |
@mwbrooks This may be caused by a bug on the HTML or JS being tested. I a have a bug in my index file which also causes the PhoneGap Developer app to stop updating. When I load a functional Just like @PierBover I am seeing the changes picked up by the CLI but not on my phone. |
@tylermakin that makes sense. If an error causes the page to fail to load, then the update/refresh logic would also fail to load. I've created a separate issue to discuss improving this and link it back here: #474 If possible, could you provide a small example that reproduces the error? |
@mwbrooks I do not recall the specific bug that caused my script to stop but anything that prevents a page from loading properly should do the trick. A simple bug that should cause this issue is calling an undefined variable:
Adding this to your JavaScript should throw an error and stop any further JS from loading, which seems to be what is causing the PhoneGap Developer app from refreshing. |
Thanks @tylermakin and thanks for quoting it in #474 :) |
So my problem is this:
phonegap create test-app
phonegap serve
Quitting the Developer App and launching it again does not help, the content of the test app stays the same and no changes are visible. But if I uninstall the Developer App completely on my phone, install it again and then connect to the server again, the test app is updated and the changes are visible.
The changes also happen automatically on browsers etc. but not on the Developer App.
The text was updated successfully, but these errors were encountered: