Skip to content

iOS: Unable to modify status bar after BarCodeScanner is active #69

@mleister97

Description

@mleister97

iOS: Unable to Modify Status Bar After Using BarCodeScanner

Description

When the BarCodeScanner is activated on iOS devices, any attempts to modify the status bar after closing the BarCodeScanner (e.g., changing its color or visibility) have no effect.The status bar remains in its last state and does not respond to changes.

This issue occurs exclusively on iOS. On Android, modifications to the status bar work as expected.

Steps to Reproduce

  1. Launch the app on an iOS device.
  2. Open the BarCodeScanner.
  3. Close the scanner
  4. Attempt to change the status bar (e.g., adjust color, visibility, or style).

Expected Behavior

  • The status bar should update when StatusBar methods are called, even after opening and closing the BarCodeScanner.
  • StatusBar.getInfo() should return correct values that reflect the actual status bar state.

Actual Behavior

  • All StatusBar methods return success, but no changes are applied.
  • StatusBar.getInfo() returns incorrect values.
  • After opening the barcode scanner once, the status bar always stays in a mode with dark icons and a transparent background, even if different styles are set.

Affected Versions

"@capacitor/status-bar": "^7.0.0",
"@capacitor-community/safe-area": "^7.0.0-alpha.1",
"@capacitor/barcode-scanner": "^2.0.0"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions