ionic-team / capacitor-plugins

Official plugins for Capacitor ⚡️
522 stars 585 forks source link

Browser plugin can not open url inside app on Android just like IOS #544

Closed AlwaysLoveme closed 3 years ago

AlwaysLoveme commented 3 years ago

Bug Report

Plugin(s)

@capacitor/browser

Capacitor Version

latest

PASTE OUTPUT HERE

Platform(s)

Android

Current Behavior

Use Browser plugin to open a url on Android, it is not opened inside app , just open out of app,

Expected Behavior

open url can inside app instead of outside of app , like IOS,

Code Reproduction

Other Technical Details

Additional Context

jcesarmobile commented 3 years ago

Browser plugin opens the url in chrome custom tabs. It’s possible that if you don’t have chrome installed, then it would use an installed browser, but that’s out of the plugin control.

AlwaysLoveme commented 3 years ago

Browser plugin opens the url in chrome custom tabs. It’s possible that if you don’t have chrome installed, then it would use an installed browser, but that’s out of the plugin control.

but i installed Chrome, and it is still open outside of app, my device is RedMi K40 Game

AlwaysLoveme commented 3 years ago

Solved, the Chrome browser needs to be set as the default browser

ionitron-bot[bot] commented 2 years 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 the plugin, please create a new issue and ensure the template is fully filled out.