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

ImagePicker.openCamera throwing missing permissions error for TargetVersion 33 #1962

Open
PrasadFeker opened this issue Aug 28, 2023 · 1 comment

Comments

@PrasadFeker
Copy link

PrasadFeker commented Aug 28, 2023

Your Environment

  • Platform: Android
  • OS version: 13
  • react-native-image-crop-picker v0.36.2
  • react-native v0.64.2
imageCaptureHandler = () => {
    ImagePicker.openCamera({ mediaType: 'photo', compressImageQuality: 0.6 })
      .then((image) => {
        console.log('Called==>', 'call');

        let files = [
          { uri: image.path, name: 'invoice0.jpg', type: image.mime },
        ];
        this.setState({
          isUploadInvoiceModal: false,
          isSendInvoiceFiles: true,
        });
        this.sendInvoiceNumber(files);
      })
      .catch((e) => {
        console.log('Errr', e);
        if (e.code !== 'E_PICKER_CANCELLED') {
          DropDownHolder.dropDown.alertWithType(
            'error',
            '',
            I18n.t('Please_try_again')
          );
        } else {
          console.log('user cancelled or something went worng');
        }
      });
  };
    

Expected Behavior

User can be open the camera and capture the image

Actual Behavior

when i try to open the camera can be open the camera and capture the image, ImagePicker.openCamera throws the error like missing android permission

Attachments

Screenshot 2023-08-28 at 12 58 07 PM Screenshot 2023-08-28 at 1 16 57 PM
@omonk
Copy link

omonk commented Aug 31, 2023

#1849

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