Skip to content

bug: Status Bar Overlay Resets After Opening File with file-viewer Plugin #5

Description

@gokulprasadlogan

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

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

426530388-e75de48f-f63a-47d6-b8f2-422d99db5373.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions