Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot acquire photo from Camera on Android > 12 #986

Open
1 of 3 tasks
Matteo-Zanini opened this issue Dec 2, 2022 · 1 comment
Open
1 of 3 tasks

Cannot acquire photo from Camera on Android > 12 #986

Matteo-Zanini opened this issue Dec 2, 2022 · 1 comment

Comments

@Matteo-Zanini
Copy link

Matteo-Zanini commented Dec 2, 2022

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 #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

  • I searched for existing GitHub issues
  • I updated all Cordova tooling to most recent version
  • I included all the necessary information above
@Vladeouz
Copy link

any solution ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants