ionic-team / ionic-team/ionic-cli

Capacitor android livereload with SSL: App.openUrl() opens nothing

Open
#4,618 0 comments 0 reactions 0 assignees View on GitHub
triage
Dominant language
TypeScript
Stars
2k
Forks
682
PR merge metrics
No merged PRs in 30d

Description

**Description:**
I implemented the App.openUrl() function of the App Plugin in my Ionic5/Angular10/Capacitor App. I`m using capacitor livereload with

cap run android --livereload --external --ssl

The command

var ret = await App.openUrl({ url: "https://myurl.com" });
console.log(ret)

does not open a system browser window as expected in livereload ssl mode. Output of console.log is `{completed: true}`

Everything works fine when I compile it with

ionic cap copy
ionic cap open android

**My `ionic info`:**
Ionic:

Ionic CLI : 6.12.2 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 5.5.1
@angular-devkit/build-angular : 0.1000.8
@angular-devkit/schematics : 11.0.2
@angular/cli : 10.0.8
@ionic/angular-toolkit : 2.3.3

Capacitor:

Capacitor CLI : 2.4.3
@capacitor/core : 2.4.3

Utility:

cordova-res : 0.15.2
native-run : 1.2.2

System:

NodeJS : v15.3.0 (/usr/local/bin/node)
npm : 7.0.14
OS : Linux 5.4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.