Matteo-Zanini opened a new issue, #986:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/986

   # Bug Report
   I can't upload a photo from an <input type="file" capture /> 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 <input type="file" 
capture /> 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
       <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" 
/>
       <uses-permission 
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
       <uses-feature android:name="android.hardware.camera" 
android:required="true" />
       <uses-permission android:name="android.permission.CAMERA" />
   
   
   ### 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
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   Android >= 12
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] I included all the necessary information above
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to