BigBalli commented on issue #501: URL: https://github.com/apache/cordova-cli/issues/501#issuecomment-4179808068
Hey — a couple of things to check here: 1. **This is run through Ionic CLI** (`ionic cordova run android --livereload`), so the livereload server setup is handled by Ionic, not Cordova directly. It might be worth opening this on the [Ionic CLI repo](https://github.com/ionic-team/ionic-cli) if you haven't already. 2. The "Cordova not available" error during livereload usually means the device's WebView is loading from the dev server but `cordova.js` isn't being served or injected properly. A few things to try: - Make sure your phone and dev machine are on the **same network** and the phone can reach your machine's IP - Try `--livereload --external` to force the dev server to bind to your external IP - Check that `cordova.js` is listed in your `index.html` — livereload replaces the local file serving, so if `cordova.js` isn't in the served directory it won't load 3. The versions listed here are quite old (cordova 9.0.0, cordova-android 8.1.0). A lot has changed since then — have you had a chance to try with current versions? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
