ionic-team / capacitor-plugins

Official plugins for Capacitor ⚡️
508 stars 577 forks source link

Android: Force use of WebView browser in Capacitor browser when access to Chrome is restricted #2047

Open patrickhuijten opened 6 months ago

patrickhuijten commented 6 months ago

Bug Report

Plugin(s)

Capacitor Version

💊   Capacitor Doctor  💊

Latest Dependencies:

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

Installed Dependencies:

  @capacitor/ios: not installed
  @capacitor/cli: 5.7.0
  @capacitor/android: 5.7.0
  @capacitor/core: 5.7.0

[success] Android looking great! 👌

Platform(s)

Current Behavior

We are deploying our application to a provisioned profile to our customers without direct access to Chrome. When using Browser.open, it tries to open Chrome, even though access to it is restricted. We get an error Your IT Administrator has restricted access to Chrome.

Expected Behavior

Is there a way to force a webview rather than Chrome using Capacitor Browser?

Ionitron commented 6 months ago

This issue needs more information before it can be addressed. In particular, the reporter needs to provide a minimal sample app that demonstrates the issue. If no sample app is provided within 15 days, the issue will be closed.

Please see the Contributing Guide for how to create a Sample App.

Thanks! Ionitron 💙

patrickhuijten commented 6 months ago

Hi @IT-MikeS,

I think reproduction case is not really applicable here since the Android setup is quite specific to our organisation and I don't have access to the tools the system administrators use to provision the Android devices.

I'm trying to understand how exactly Capacitor determines which device browser to use to open inside the Capacitor window, and if there is any way to force it to use the native WebView instead of an instance of Chrome 😇