0

I have tried InAppWebView & WebView both but permission alert box not showing in android app. Same URL is asking for camera permission automatically in browser but not asking for permission in android web view. I have implemented explicitly for camera permission but not working.

I have tried almost all solution available on internet but non is working for me. I want to implement video conferencing in web view android in flutter. Same URL is asking permission automatically in browser but not asking in web view. I have tried to implement allow JSalert, permissionRequest but none works.As u can see like this permission alert is not getting popup in flutter webview android enter image description here

I am using

webview_flutter: ^4.10.0

_controller = WebViewController()
      ..setJavaScriptMode(JavaScriptMode.unrestricted)
      ..loadRequest(
        Uri.parse(
          'https://reliancegeneral.co.in',
        ),
      )
      ..setNavigationDelegate(NavigationDelegate(
        onProgress: (int progress) {
          progressDialog.show(
              titleText: "Loading", messageText: "Please wait...");
          debugPrint('WebView is loading (progress : $progress%)');
        },
        onPageStarted: (String url) {
          debugPrint('Page started loading: $url');
        },
        onPageFinished: (String url) {
          progressDialog.hide();
          _controller.runJavaScript("""
            function sendMessageToFlutter(Android) {
              FlutterChannel.postMessage(Android);
            }
          """);
          debugPrint('Page finished loading: $url');
        },
      ))

it should ask location permission same like attached screenshot but not asking while opening in-app web view.

enter image description here

1
  • Any help on this? Commented Jan 28 at 6:16

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.