I have a local/remote HTML page (attached: add_ad_app.html) loaded inside a B4A WebView. The page is a simple form with <input type="file"> for picking a gallery image and another with capture="environment" for the camera, both submitted via fetch()/JSON to a PHP backend.
This works perfectly when I open the exact same HTML file in a normal mobile browser (Chrome) — tapping either file input correctly opens the gallery or camera and the picked image uploads fine.
Inside B4A's WebView, nothing happens when tapping those inputs — no file chooser opens at all. I understand this is likely because B4A's core WebView doesn't implement onShowFileChooser, so <input type="file"> silently does nothing.
My questions:
- Is there a currently-maintained B4A library/approach that adds proper file-chooser support to WebView (so standard HTML file inputs work, including offering Camera as an option, like a real browser does)?
- Alternatively, is a custom URL-scheme bridge (JS does location.href='myapp://pickImage', intercepted via WebView1_OverrideUrl, native side picks/captures the image, then calls back into the page via WebViewExtras.ExecuteJavascript(...) with a base64 data URL) still the recommended pattern for this in 2025/2026, or is there something more direct/reliable now?
- If anyone has a small working example project combining WebView + native image picker (gallery or camera) feeding back into the page, I'd really appreciate a look at it — happy to test against the attached HTML directly.
B4A version:13.0
Libraries currently in use: WebViewExtras2, RuntimePermissions, JavaObject, OkHttpUtils2