question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

onPermissionRequest implemented multiple times

See original GitHub issue

https://github.com/react-native-webview/react-native-webview/blob/4e07183a2d742c47df217545f4a1a99271c39b46/android/src/main/java/com/reactnativecommunity/webview/RNCWebViewManager.java#L1154

On android there is 2 implementations for onPermissionRequest method which does not compile… Error:

method onPermissionRequest(PermissionRequest) is already defined in class RNCWebChromeClient
    public void onPermissionRequest(final PermissionRequest request) {
                ^

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:12
  • Comments:7

github_iconTop GitHub Comments

3reactions
Titozzzcommented, May 24, 2021

Sorry for the bugs guys 😔 thanks @matt-oakes for testing

0reactions
badararaincommented, May 24, 2021

Sorry for the bugs guys 😔 thanks @matt-oakes for testing

thanks for fixing it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to implement onPermissionRequest() ? · Issue #78 - GitHub
I'm trying to implement: WebChromeClient#onPermissionRequest(android.webkit. ... As you can see, I tried with two different variants, ...
Read more >
android - Asking Camera Permission For WebView At Runtime
The problem is that the permission seems to be not granted. Additionally, the permission request is repeated multiple times. Android Code.
Read more >
WebChromeClient - Android Developers
QuotaUpdater instance. The minimum value that can be set for the new quota is the current quota. The default implementation responds with the...
Read more >
532196 - onPermissionRequest not called - Monorail
3. Inside the 'new WebChromeClient' override the method 'onPermissionRequest' ... How comes that you still have not find an issue while at the...
Read more >
My android app restarts on permission request - Cross-platform
I implemented the code based on this blog post: ... Last time I checked, ForceDirectories() DOES NOT raise an exception if the specified ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found