Select image no longer works in capacitor with the update to android api 33

Hi, since I updated my app ionic capacitor with api 32 to api 33 android, the functionality of selecting images from the device gallery stopped working. It is no longer activated. I appreciate any collaboration.

I use these libraries

import { Camera, CameraResultType, CameraSource, Photo,
} from ‘@capacitor/camera’;

@capacitor/camera”: “^1.3.1”,
@capacitor/core”: “4.6.1”,
@capacitor/android”: “3.4.3”,

My code is this

Blockquote
async selectImage2() {
const image = await Camera.getPhoto({
quality: 50,
resultType: CameraResultType.Uri,
source: CameraSource.Photos, // Camera, Photos or Prompt!
});

if (image) {
  const base64Data = await this.readAsBase64(image);
  let base64Image = 'data:image/jpeg;base64,' + base64Data;
  console.log(base64Image);
  this.imagen4 = base64Image;
  this.changeDetectorRef.detectChanges();
  this.presentToast('image uploaded successfully', 'success');
}

}

Blockquote

Does not work on android 13 devices

You should upgrade to Capacitor 5 to officially support SDK v33. There are new permissions needed android.permission.READ_MEDIA_IMAGES. See Updating to 5.0 | Capacitor Documentation