ionic-team / capacitor

Build cross-platform Native Progressive Web Apps for iOS, Android, and the Web ⚡️
https://capacitorjs.com
MIT License
12.08k stars 1k forks source link

bug: Live Reload not working on Android with Auth0 https login #5153

Closed Aarbel closed 3 years ago

Aarbel commented 3 years ago

Bug Report

Capacitor Version

3.2.5

Platform(s)

Android

Current Behavior

image image

Expected Behavior

Opening my url http://192.168.1.11:3000

Code Reproduction

npx cap copy android && npx cap run android

{
  appId: 'XXXXX',
  appName: 'XXXXXX',
  backgroundColor: '#ffffff',
  bundledWebRuntime: false,
  plugins: {
    Keyboard: { resize: 'native', style: 'dark' },
    SplashScreen: { launchShowDuration: 500 }
  },
  ios: { path: './.capacitor/platforms/ios' },
  android: { path: './.capacitor/platforms/android' },
  server: {
    cleartext: true,
    url: 'http://192.168.1.11:3000',
    allowNavigation: [
      '*',
    ]
  },
  webDir: './dist'
}

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

Additional doc

Cf

jcesarmobile commented 3 years ago

If Auth0 requires https and you are using http, it's not a Capacitor bug. Capacitor "live reload" feature limits itself to allow you to configure the url to load, but it's you who is loading a http url (not provided by Capacitor). And as explained in your previous issue, the fact that you can't load https urls is also not a Capacitor issue, but a bad/misconfigured certificate.

RobSchilderr commented 2 years ago

How did you solve this @Aarbel?

ionitron-bot[bot] commented 1 year ago

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.