-
Notifications
You must be signed in to change notification settings - Fork 100
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
Having issues with LiveReload #45
Comments
I am a starter too. But I haven't gone that far, stuck in an issue, "exeption nativeEvalAndFetch : ReferenceError: Can't find variable: cordova global code - index.html:1:127". What example app did you use to make it work in simulator? Mine shows a blank screen with the emberjs super-rentals example app. |
@zxcware Probably want to open up your own issue since it's a separate problem. 👍 |
@zxcware: Yes please open a new ticket, we don't have an example app right now. @thegranddesign: Can you run a quick debug step for me. With Mac and iPhone on the same network, run ember s. Then hit http://macNetworkIp:4200 on iPhone browser and confirm it loads as expected? |
@alexblom I'll do that. Thanks. |
@alexblom I did and it does. Opens in Safari by hitting my Mac's network IP and the LiveReload works as well (in Safari). |
I've also tried running it both from Simulator as well as from my device. |
Which port is correct for the |
@alexblom I'm in the process of getting you a test app together to try to help you help me. :) |
@thegranddesign: it should be 4200. Can you paste me the full command you are running for ember cdv:serve? |
Following up - is this issue still active? |
yes, I didn't get the time. Could we discuss on the weekend?
|
It's actually going to be my birthday weekend, so taking this one not behind a screen. Generally around this coming week though. |
@alexblom still active. I just got caught up with a ton of life stuffs. Full command was in that video I sent you. I can't recall off the top of my head. I'm going to be digging back into this probably this weekend. |
Actually all of the commands that I ran appear to be in the issue text above. |
Serve has changed a lot since this issue anyway, so I'm going to close it. Upgrade to 0.2.0 and check the new docs: https://github.com/isleofcode/ember-cordova/blob/master/docs/livereload.md Feel free to re-open if you still have troubles. |
This is my first foray into Cordova so please bear with me. Here is what I attempted:
ember-cli-cordova
and got it up and running (including running the generator - I'm only using iOS right now)ember-cordova
so switched to thatcordova
->ember-cordova/cordova
ember cordova:open
would open in XCode and I could hitbuild
to run itNext I tried to get LiveReload working:
allow-navigation
config inember-cordova/cordova/config.xml
is currently set to*
to remove any additional potential problems from thatember-cordova
config inenvironment.js
is currently set to the following:I have tried both
4200
and49154
for thereloadUrl
considering I wasn't sure what the docs meant. I would assume it would just useemberUrl
if that's what it wanted but since the reloader is serving from49154
my assumption is thatreloadUrl
is looking for that and not theemberUrl
.Either way, neither of them worked.
ember cordova:serve
This does all the stuff, but the docs make it seem as though it should launch the app, however it does not.ember cordova:open
in a separate tab. This opens XCode, but does not run the appemberUrl
index.html
)Expected Result
App in simulator refreshes to reflect those changes
Actual Result
App in simulator does not refresh
More Information
Interestingly, even if I quit Simulator and rebuild the app in XCode I still don't see the changes. I must completely rebuild the entire app to see changes to the code.
The text was updated successfully, but these errors were encountered: