ionic-team / ionic-team/capacitor-file-viewer
bug: Status Bar Overlay Resets After Opening File with file-viewer Plugin
- Dominant language
- Swift
- Stars
- 5
- Forks
- 4
- Avg merge
- 11m
- Merged PRs (30d)
- 1
Description
## Bug Report
### Capacitor Version
7.0.1
```
Latest Dependencies:
@capacitor/cli: 7.4.0
@capacitor/core: 7.4.0
@capacitor/android: 7.4.0
@capacitor/ios: 7.4.0
Installed Dependencies:
@capacitor/android: not installed
@capacitor/cli: 7.0.1
@capacitor/core: 7.0.1
@capacitor/ios: 7.0.1
```
### Platform(s)
iOS
### Current Behavior
I'm using the Capacitor Status Bar plugin and have explicitly set overlays: false because I do not want my app content to overlay on the status bar. However, after opening a downloaded report using the file-viewer plugin, triggered via a local notification, the status bar overlay setting resets to its default (overlays: true).
This issue occurs only after closing the file viewer (by tapping "Done" or exiting the file viewer). The status bar overlay remains reset until I completely close and reopen the app, at which point my original setting (overlays: false) is respected again.
### Expected Behavior
The status bar overlay setting (overlays: false) should persist even after opening and closing a file with the file-viewer plugin.
### Code Reproduction
[https://github.com/gokulprasadlogan/file-opener-bug](https://github.com/gokulprasadlogan/file-opener-bug)
### Other Technical Details
#### Steps to reproduce
- Set overlays: false using the Capacitor Status Bar plugin.
- Download a report and open it using the File Opener plugin via a local notification.
- After viewing the file, close it by tapping "Done" or exiting the viewer.
- Observe that the status bar now overlays the app content (overlays: true).
- Fully close and reopen the app—now the status bar setting (overlays: false) is applied again.
### Additional Context
Plugin Link: [@capacitor/file-viewer](/https://capacitorjs.com/docs/apis/file-viewer)
https://github.com/user-attachments/assets/528d4c46-7531-439b-b9a9-b94ebd7ee7ad
Contributor guide
Assessment
This issue has not been assessed yet.