← Back to discussions

File upload isn't opening the gallery or camera in Android WebView

DDeeksha SharmaPublished 6/28/2026343 views1 comments

I have a file input <input type="file" accept="image/*"> on my website. When using a normal mobile browser, clicking it opens the image gallery/camera picker.

However, inside our compiled Android app, clicking the button does absolutely nothing. No errors are printed. How do I fix this?

1 Comments

KKevin O6/28/2026

By default, Android's WebView does not handle file uploads out of the box. You have to implement a custom WebChromeClient and override onShowFileChooser.
You also need to request CAMERA and READ_EXTERNAL_STORAGE permissions in AndroidManifest.xml.

If you are using Nativine's templates, this is already implemented. Check if you've denied the camera/photo permissions when launching the app for the first time.

Please log in to reply.
WhatsApp