ionic-team / ionic-team/capacitor
[Bug]: status-bar setStyle doesn't work properly
- Dominant language
- TypeScript
- Stars
- 16.7k
- Forks
- 1.3k
- Avg merge
- 3d 15h
- Merged PRs (30d)
- 10
Description
### Capacitor Version
@capacitor/android: 8.3.1
@capacitor/ios: 8.3.1
Installed Dependencies:
@capacitor/cli: 8.3.0
@capacitor/core: 8.3.0
@capacitor/ios: 8.3.0
@capacitor/android: 8.3.0
### Other API Details
```Shell
npm --version: 11.11.0
node --version: v24.14.1
```
### Platforms Affected
- [ ] iOS
- [x] Android
- [ ] Web
### Current Behavior
I have a problem with [status-bar plugin](https://capacitorjs.com/docs/apis/status-bar). It seems that `StatusBar.setStyle` method doesn't work, if initial style is 'DARK' or 'DEFAULT'.
### Expected Behavior
Whenever we call `StatusBar.setStyle`, it should work as expected.
### Project Reproduction
https://github.com/imalitavakoli/.capacitor-app/tree/bug/status-bar
### Additional Information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.