question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Live reload not working with https server.url

See original GitHub issue

Bug 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” image image

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'
}

image

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:closed
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
Aarbelcommented, Oct 18, 2021

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:

  • debugging with a physical Android or iOS devices
  • debugging with login services like Auth0 which needs https for custom ips
0reactions
ionitron-bot[bot]commented, Nov 10, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found