premkattaWm opened a new pull request, #966: URL: https://github.com/apache/cordova-plugin-camera/pull/966
Two fixes for modern Android compatibility: 1. cordova-android 15+ WebView fix: The WebView now runs on https://localhost and blocks file:// and content:// URIs. Added a CordovaPluginPathHandler that serves cached camera images via https://localhost/_cordova_camera_cache_/... URLs. All FILE_URI return paths now use toWebViewAccessibleUri() to produce WebView- loadable URLs through this handler. 2. API 36 MediaScanner fix: MediaScannerConnection.scanFile() returns null on API 36+. Since API 29+ already saves gallery images via MediaStore ContentValues (writeTakenPictureToGalleryStartingFromAndroidQ), the legacy scanForGallery call is skipped on API 29+. plugin.xml adds androidx.webkit:webkit as a framework dependency (required by WebViewAssetLoader.PathHandler). -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
