Capacitor - Camera plugin not registered in android

Hi Team,

I am facing issue when Capacitor android

Capacitor - Camera plugin not registered in android.

with below code.

this.bridge.getWebView().setWebViewClient(new WebViewClient() {
public boolean shouldOverrideUrlLoading(WebView view, String url) {
return true;

Capacitor relies in the WebViewClient to inject the javascript code needed for the plugins to work, so if you use your own, you are making that the Capacitor plugins code is not injected.

Instead of creating a new WebViewClient, create a new BridgeWebViewClient, that way the methods you don’t overwrite use the Capacitor methods and the plugin injection keeps working.