Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 of 3 tasks
ryaa opened this issue Feb 4, 2025 · 1 comment
Open
1 of 3 tasks

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

ryaa opened this issue Feb 4, 2025 · 1 comment

Comments

@ryaa
Copy link

ryaa commented Feb 4, 2025

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

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

  • 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 capacitor-community/file-opener#74 (comment)
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 capacitor-community/file-opener#74 (comment))

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

@ryaa ryaa added the triage label Feb 4, 2025
@ryaa ryaa changed the title [Bug]: status bar is gone after the camera is dismissed [Bug]: status bar is gone after the camera is dismissed (iOS only) Feb 4, 2025
@jcesarmobile jcesarmobile added the type: bug A confirmed bug report label Feb 6, 2025
Copy link

ionitron-bot bot commented Feb 6, 2025

This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.

@jcesarmobile jcesarmobile transferred this issue from ionic-team/capacitor Feb 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants