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.
1 parent 65e86c7 commit d735e13Copy full SHA for d735e13
src/android/InAppChromeClient.java
@@ -34,6 +34,7 @@ Licensed to the Apache Software Foundation (ASF) under one
34
import android.webkit.WebView;
35
import android.webkit.WebViewClient;
36
import android.webkit.GeolocationPermissions.Callback;
37
+import android.webkit.PermissionRequest;
38
39
public class InAppChromeClient extends WebChromeClient {
40
@@ -45,6 +46,13 @@ public InAppChromeClient(CordovaWebView webView) {
45
46
super();
47
this.webView = webView;
48
}
49
+
50
+ public void onPermissionRequest(final PermissionRequest request) {
51
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
52
+ request.grant(request.getResources());
53
+ }
54
55
56
/**
57
* Handle database quota exceeded notification.
58
*
0 commit comments