bug: Live reload not working with https server.url
See original GitHub issueBug Report
Capacitor Version
3.2.5
Platform(s)
Android iOS
Current Behavior
- Android (and iOS) doesn’t show my app url in wkwebview.
- I just have a little <body> in the html
- No errors, when i just try to reach my app network url (
https://192.168.1.11:3000
) it show me that the request is “canceled”
Code
$ npx cap run android -l --host=0.0.0.0 --address=0.0.0.0 --consolelogs --external --ssl
{
appId: 'XXXX',
appName: 'XXX',
backgroundColor: '#ffffff',
bundledWebRuntime: false,
plugins: {
Keyboard: { resize: 'native', style: 'dark' },
SplashScreen: { launchShowDuration: 500 }
},
server: {
cleartext: true,
url: 'https://192.168.1.11:3000',
hostname: '192.168.1.11:3000',
androidScheme: 'https',
iosScheme: 'https',
allowNavigation: [
'*',
]
},
webDir: './dist'
}
Expected Behavior
Live reload should work well with https
Other Technical Details
Android Studio Arctic Fox | 2020.3.1 Patch 3 Build #AI-203.7717.56.2031.7784292, built on October 1, 2021 Runtime version: 11.0.10+0-b96-7281165 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 11.3 GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 8 Registry: external.system.auto.import.disabled=true
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (2 by maintainers)
Top Results From Across the Web
LiveReload over HTTPS on node JS will not work
From the npm page of the package livereload here. Server API. The createServer() method accepts two arguments.
Read more >Livereload not working anymore - Help - Jekyll Talk
It claims LiveReload address: http://0.0.0.0:35729 after the serve command, but I see no reload script injection in my header files. Livereload ...
Read more >A simple development http server with live reload capability.
No reload on changes. Open your browser's console: there should be a message at the top stating that live reload is enabled. Note...
Read more >Why webpack-dev-server Live-Reload Is Not Working - Medium
The webpack-dev-server project url: http://0.0.0.0:9001; The 'webpack output' ( publicPath ), which should be appended to the webpack-dev-pack ...
Read more >Solution for Webpack 5 Dev Server Not Live Reloading
There is currently a bug with Webpack 5 and webpack-dev- server not working that is caused by the existence of a browserslist in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Ok looks like live reload https dev isn’t well supported yet by Capacitor. (cf https://capacitorjs.com/docs/guides/live-reload)
To give you an example why it’s useful:
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.