ionic-team / ionic-team/capacitor-camera

[Bug]: "Close camera" button (x) is not working on Android

Open
#73 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4
Forks
1
Avg merge
2d 1h
Merged PRs (30d)
2

Description

### Current Behavior

The "close camera" button (x) is not working on Android

### Expected Behavior

The "close camera" button (x) should close the camera on Android

### Reproduction

```Camera.takePhoto({})```

### Screenshots / Media

https://github.com/user-attachments/assets/7f1f7425-5d6e-489e-83e3-37fc969528d3

### Environment Details

```Shell
OS version: Android 13

npx cap doctor
💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 8.5.0
@capacitor/core: 8.5.0
@capacitor/android: 8.5.0
@capacitor/ios: 8.5.0

Installed Dependencies:

@capacitor/core: 8.5.0
@capacitor/android: 8.5.0
@capacitor/cli: 8.5.0
@capacitor/ios: 8.5.0

[success] Android looking great! 👌
[success] iOS looking great! 👌

npm --version
11.17.0

node --version
v24.19.0
```

### Versions Affected

Tested on v8.2.2

### Platforms Affected

- [ ] iOS
- [x] Android
- [ ] Web

### Notes / Comments

Tested on a Pixel 4a running Android 13.

The workaround is to close the app or swipe from the left edge of the screen to the center.

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue on Android 13 with Camera.takePhoto({}) and inspect the camera flow around the close-camera control. Confirm the expected behavior by verifying that the x button exits the camera without requiring the app to close or an edge swipe.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, typescript
Domain
mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
57/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.