InAppBrowser - Input type="file" Camera Option Not Available on Android Devices

When using the InApp Browser within our Ionic application on Android devices, we encounter a limitation regarding the input type="file" element. Specifically, upon clicking the file input field, the option to open the camera is not available. This issue contrasts with the behavior observed on iPhone devices, where the camera option is accessible.

Current Status
This issue has been identified as a recurring problem within the cordova-plugin-inappbrowser plugin. Several related issues have been reported on the official GitHub repository, but as of now, no resolution or workaround has been provided by the plugin maintainers.

Relevant Issue Links:

Steps to Reproduce:

  1. Launch the Ionic application on an Android device.
  2. Navigate to a page containing an input type="file" element within the InApp Browser.
  3. Click on the file input field.

Expected Behavior:

  • The user should be presented with the option to either select a file from the device’s storage or open the camera to capture a new file.

Actual Behavior:

  • The option to open the camera is not available, limiting the user’s ability to capture new files directly through the InApp Browser interface.

Additional Notes:

  • As this issue significantly impacts user experience and functionality, we kindly request the attention of the community and the plugin maintainers to explore potential solutions or workarounds.
  • Any insights, suggestions, or contributions to resolving this issue would be greatly appreciated.

Thank you for your attention and assistance in addressing this matter.

Is it really necessary for the camera to open in the IAB? Why not open the camera outside of the IAB?

You are using a plugin to open another plugin, plugin authors wouldnt add this functionality because of many reason and this is just a edge case scenario.

You would need to fork the IAB and add your own custom to code to open the camera, but I would avoid doing any of that and change the user flow of the feature instead.