Skip to content

Upgrade @capacitor/camera to use CameraX on Android #2405

@eric-lesslie

Description

@eric-lesslie

Feature Request

Plugin

@capacitor/camera

Description

After viewing the android implementation, it seems like the camera plugin uses Camera1 for taking pictures on Android. The Camera1 class was deprecated on Android in 2015 with 5.0.

Change the @capacitor/camera plugin to use CameraX

Platform(s)

Android

Preferred Solution

@capacitor/camera uses a non-deprecrated library for taking pictures

Alternatives

Change the implementation to use Camera2. According to documentation it is more complicated, but still supported.

Additional Context

There are several active Camera bugs that might be resolved by changing to the modern API.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions