Skip to content
Discussion options

You must be logged in to vote

When you say you are unable to get it to work, were you encountering errors that you might share with us? Or did addition of the WebChromeClient simply not work for your needs? It looks like the code they say you need to use could be fairly straightforward to get working with Skip's Kotlin-ish syntax:

    myWebView.setWebViewClient(new WebViewClient());
    myWebView.setWebChromeClient(new WebChromeClient() {
      @Override
      public void onPermissionRequest(final PermissionRequest request) {
        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
            request.grant(request.getResources());
        }
      }
    });

For experimentation, you also might be better of…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by marcprux
Comment options

You must be logged in to vote
1 reply
@marcprux
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants