ionic-team / ionic-team/capacitor-barcode-scanner

iOS: Unable to modify status bar after BarCodeScanner is active

Open
#69 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
64
Forks
47
Avg merge
1h 55m
Merged PRs (30d)
1

Description

### 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
```json
"@capacitor/status-bar": "^7.0.0",
"@capacitor-community/safe-area": "^7.0.0-alpha.1",
"@capacitor/barcode-scanner": "^2.0.0"

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.