We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74f1e6c + 30e6836 commit f94da97Copy full SHA for f94da97
android/src/main/java/com/reactnativecommunity/webview/RNCWebChromeClient.java
@@ -212,8 +212,10 @@ public void onPermissionRequest(final PermissionRequest request) {
212
213
// If all the permissions are already granted, send the response to the WebView synchronously
214
if (requestedAndroidPermissions.isEmpty()) {
215
- request.grant(grantedPermissions.toArray(new String[0]));
216
- grantedPermissions = null;
+ if (!grantedPermissions.isEmpty()) {
+ request.grant(grantedPermissions.toArray(new String[0]));
217
+ grantedPermissions = null;
218
+ }
219
return;
220
}
221
0 commit comments