Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
patrickhuijten opened this issue Mar 4, 2024 · 2 comments
Labels

Comments

@patrickhuijten
Copy link

Bug Report

Plugin(s)

  • @capacitor/browser

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)

  • Android

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-bot ionitron-bot bot added the triage label Mar 4, 2024
@ionitron-bot ionitron-bot bot removed the triage label Mar 4, 2024
@IT-MikeS IT-MikeS added needs reproduction type: feature request A new feature, enhancement, or improvement labels Mar 11, 2024
@Ionitron
Copy link
Collaborator

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
Copy link
Author

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 馃槆

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants