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
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
The ion header after the status bar is gone and after the camera is dismissed/canceled
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.