ionic-team / ionic-team/capacitor-plugins

[Bug]: status bar is gone after the camera is dismissed (iOS only)

Open
#2,310 14 comments 2 reactions 0 assignees View on GitHub
platform: android platform: ios platform: web type: bug
Dominant language
Java
Stars
678
Forks
685
Avg merge
4d 22h
Merged PRs (30d)
3

Description

### Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

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

Installed Dependencies:

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

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

### Other API Details

```Shell
alexryltsov@Alexs-MacBook-Pro-2 master % npm --version
10.5.0
alexryltsov@Alexs-MacBook-Pro-2 master % node --version
v20.11.1
alexryltsov@Alexs-MacBook-Pro-2 master % pod --version
1.16.2
```

### Platforms Affected

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

### Current Behavior

The status bar is gone after the camera is dismissed/canceled. I ionic header height is changed to take the status bar height - see below

The ion header when the status bar is displayed and before the camera is opened
Image

The ion header after the status bar is gone and after the camera is dismissed/canceled
Image

To reproduce please clone this repo https://github.com/ryaa/capacitor-status-bar-becomes-invisible-issue, build and run it. Then tap Get Photo, select picker or camera and then cancel (don't select image or take a photo). Note that the status bar is gone.

### Expected Behavior

Status bar must stay the same

### Project Reproduction

https://github.com/ryaa/capacitor-status-bar-becomes-invisible-issue

### Additional Information

This issue was reported as an issue to `capacitor-community/file-opener` - see https://github.com/capacitor-community/file-opener/issues/74#issue-2826009586
Note that in addition to the status bar being gone, there are some warnings shown in XCode console (here is another repo demonstrating the problem https://github.com/capacitor-community/file-opener/issues/74#issuecomment-2631707287)

Please note that everything works fine on Android and for the status bar v6.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.