asfackahamed opened a new issue, #1079: URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/1079
# Bug Report Add onPermissionRequest Implementation in InAppChromeClient.java ## Problem The current implementation of InAppChromeClient.java in the cordova-plugin-inappbrowser lacks support for the onPermissionRequest method, which is required to handle runtime permissions in WebView. ### What is expected to happen? When a webpage or embedded content within the InAppBrowser requests permissions (e.g., accessing the camera, microphone, or location), the onPermissionRequest method should handle the request appropriately. ### What does actually happen? Permissions requested by the webpage are not granted, as the onPermissionRequest callback is missing. This leads to functionality like video calls or location access failing within the WebView. ## Information The cordova-plugin-inappbrowser currently does not handle runtime permission requests via the onPermissionRequest method in InAppChromeClient.java. This issue primarily affects apps requiring access to hardware features such as the camera or microphone through WebView. ### Command or Code To reproduce the issue, navigate to a webpage inside the InAppBrowser that requests access to hardware features, such as: - Camera (e.g., for video calls) - Microphone - Geolocation ### Environment, Platform, Device Platform: Android Device: Any Android device running a Cordova app using cordova-plugin-inappbrowser ## Checklist <!-- Please check the boxes by putting an x in the [ ] like so: [x] --> - [ x] I searched for existing GitHub issues - [x ] I updated all Cordova tooling to most recent version - [ x] I included all the necessary information above -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org