Skip to content

Cannot acquire photo from Camera on Android > 12 #986

Open
@Matteo-Zanini

Description

@Matteo-Zanini

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions