Skip to content

[Bug]: scheme is not respected on capacitor run with live-reload #7669

@matheo

Description

@matheo

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 6.1.2
@capacitor/core: 6.1.2
@capacitor/android: 6.1.2
@capacitor/ios: 6.1.2

Installed Dependencies:

@capacitor/android: 6.1.2
@capacitor/core: 6.1.2
@capacitor/cli: 6.1.2
@capacitor/ios: 6.1.2

Other API Details

npm 10.5.0
node v18.20.2

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

It was reported here that live-reload has a hardcoded scheme and it still seems to be the case on main:
https://github.com/ionic-team/capacitor/blob/main/cli/src/util/livereload.ts#L172

Why does the API of this command exposes --scheme if we cannot connect to a localhost served with --ssl?
https://capacitorjs.com/docs/cli/commands/run

Expected Behavior

To be able to run ng serve --ssl and connect to it via --live-reload --scheme=https.

Project Reproduction

https://github.com/matheo/capacitor-live-reload-bug

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions