apache / apache/cordova-plugin-inappbrowser

Camera does not open on android file input with capture attribute.

Open
#808 8 comments 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
1.1k
Forks
2.2k
PR merge metrics
No merged PRs in 30d

Description

# Bug Report

## Problem
When I click an file input, it should make me able to use camera as a input.

### What is expected to happen?
When I click the file input with capture= attribute, it should open camera.

### What does actually happen?
It opens file manager instead.

## Information
Just have a normal file input where you can add capture attribute.
It should then open camera up for the user, but it always open the file manager.

This problem only occurs on Android though, iOS works fine.

### Environment, Platform, Device
Android

### Version information

Cordova: Cordova CLI 10.0.0.
cordova-android "^9.0.0",
cordova-ios "^5.1.1",
cordova-plugin-camera "^4.1.0",
cordova-plugin-device "^1.1.7",
cordova-plugin-file-transfer "^1.7.1",
cordova-plugin-inappbrowser "^4.0.0",
cordova-plugin-migrate-localstorage "0.0.2",
cordova-plugin-wkwebview-engine "^1.2.1",
cordova-plugin-wkwebview-file-xhr "^2.1.4",

Contributor guide

Open the contributing guide

Research direction

No source file, test, or entry point is named. Start by reproducing a normal HTML file input with the capture attribute on Android using the reported Cordova versions, then trace the Android InAppBrowser handling of file inputs. Done means the input opens the camera on Android while the existing iOS behavior remains unaffected.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, javascript
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.