# Unable to open camera using native camera function on some android device

**URL:** <https://forum.ionicframework.com/t/unable-to-open-camera-using-native-camera-function-on-some-android-device/220337>\
**Category:** Capacitor\
**Created:** [February 10, 2022, 6:10am UTC](https://forum.ionicframework.com/t/unable-to-open-camera-using-native-camera-function-on-some-android-device/220337 "2022-02-10T06:10:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shmslhelmi](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@shmslhelmi](https://forum.ionicframework.com/u/shmslhelmi)\
**Post date:** [February 10, 2022, 6:10am UTC](https://forum.ionicframework.com/t/unable-to-open-camera-using-native-camera-function-on-some-android-device/220337/1 "2022-02-10T06:10:48Z")

</div>

how to fix on some android device that unable to open native camera ?

this is my ionic info and im using @ionic-native/camera@5.36.0.

im using standard code to access native camera , but some android device like OPPO A93 and OnePlus , cannot open native camera.

i already tested on Iphone, and some android device such as redmi , vivo and it work like a charm

```auto
Ionic:

   Ionic CLI : 6.17.1 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework : @ionic/angular 5.5.4
   @angular-devkit/build-angular : 0.1101.4
   @angular-devkit/schematics : 11.1.4
   @angular/cli : 11.1.4
   @ionic/angular-toolkit : 3.1.0

Capacitor:

   Capacitor CLI : 2.4.6
   @capacitor/android : 2.4.6
   @capacitor/core : 2.4.6
   @capacitor/ios : 2.4.6

Utility:

   cordova-res : not installed globally
   native-run : 1.5.0

System:

   NodeJS : v14.18.1 (/usr/local/bin/node)
   npm : 6.14.15
   OS : macOS Monterey

```

```auto
AccessCamera(){    
    const options: CameraOptions = {
      quality: 50,
      correctOrientation: true,
      // allowEdit: true,
      destinationType: this.camera.DestinationType.DATA_URL,
      encodingType: this.camera.EncodingType.JPEG,
      mediaType: this.camera.MediaType.PICTURE
    }
    this.camera.getPicture(options).then((ImageData => {
      this.pic.base64img = "data:image/jpeg;base64," + ImageData;
    }), error => {
      console.log(error);
    })
  }

```

---

<div class="post-metadata">

**Author:** ![thomasvidas](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/thomasvidas/32/137760_2.png) [@thomasvidas](https://forum.ionicframework.com/u/thomasvidas)\
**Post date:** [February 10, 2022, 7:46pm UTC](https://forum.ionicframework.com/t/unable-to-open-camera-using-native-camera-function-on-some-android-device/220337/2 "2022-02-10T19:46:39Z")

</div>

Does importing the Camera plugin used in Capacitor, not the `@ionic-native` plugin, work? A Camera plugin already comes bundled with Capacitor 2 so you shouldn’t need to import another library. Example below:

> **[Capacitor: Cross-platform native runtime for web apps](https://capacitorjs.com/docs/v2/apis/camera#example)**
>
> Build iOS, Android, and Progressive Web Apps with HTML, CSS, and JavaScript
