Reputation: 412
I am building a phonegap app and need quick test feedback on the live devices
I am using phonegap CLI to serve.
I have been building on my home desktop PC running windows 7, and am currently working elsewhere on my laptop running windows 10. Now I have run into the following problem:
On my desktop PC:
After each change on either the javascript or HTML file, the phonegap server autoreloads the app and the changes show almost immediately on the devices. I also get the console.log replies in the CLI.
On my laptop:
After each change on either the javascript or the HTML file I get a message on the CLI that the relevant file has been changed (this does not happen on my desktop PC) and there is no autoreloading of the apps on the test devices neither does it give a readout of the console.log replies and any alert() that I use in their place take much longer to pop up than normal...
Is there anyone who can shed some light on how I can get the autoreload and the console.log working ???
Regards
Upvotes: 3
Views: 870
Reputation: 412
So after some tedious debugging I found it.
in the head section I added:
<script type="text/javascript" src="cordova.js"></script>
although I already had:
<script type="text/javascript" charset="utf-8" src="cordova.js"></script>
and it's still like that on my desktop PC...
and now everything works...both the console.log and the autoreloading...
Hope this helps someone.
Upvotes: 4