cordova-plugin-inappbrowser icon indicating copy to clipboard operation
cordova-plugin-inappbrowser copied to clipboard

Cannot acquire photo from Camera on Android > 12

Open Matteo-Zanini opened this issue 2 years ago • 1 comments

Bug Report

I can't upload a photo from an on Android >= 12 (works on < 12), while using InAppBrowser

Problem

I'm using solution suggested on https://github.com/apache/cordova-plugin-inappbrowser/issues/328 to use camera chooser, if I open, with inAppBrowser, a page with an I can't use the camera to upload the photo, on onActivityResult I see a 0 resultCode and the input remain blank, while an empty file is created. I've specified all the permission needed

What is expected to happen?

Input type file should work also with camera on Android >= 12

What does actually happen?

Input type file is empty after taking a photo with camera on Android >= 12

Information

Command or Code

Environment, Platform, Device

Android >= 12

Version information

Checklist

  • [x] I searched for existing GitHub issues
  • [ ] I updated all Cordova tooling to most recent version
  • [ ] I included all the necessary information above

Matteo-Zanini avatar Dec 02 '22 16:12 Matteo-Zanini

any solution ?

Vladeouz avatar Jun 19 '24 04:06 Vladeouz