capacitor icon indicating copy to clipboard operation
capacitor copied to clipboard

bug: status-bar stay black on Android 13

Open rbalet opened this issue 3 years ago • 1 comments

Bug Report

Capacitor Version

Latest Dependencies:       

  @capacitor/cli: 4.2.0    
  @capacitor/core: 4.2.0   
  @capacitor/android: 4.2.0
  @capacitor/ios: 4.2.0    

Installed Dependencies:    

  @capacitor/cli: 4.2.0    
  @capacitor/core: 4.2.0   
  @capacitor/android: 4.2.0
  @capacitor/ios: 4.2.0    

[success] Android looking great! 👌
[error] Xcode is not installed

Platform(s)

Pixel 4a - Android 13

Current Behavior

The status bar stay black

image

Expected Behavior

Having a light gray transparent background

image

Code Reproduction

Inside app.component.ts

    await StatusBar.setStyle({ style: Style.Dark })

    if (Capacitor.getPlatform() === 'android') {
      await StatusBar.setOverlaysWebView({ overlay: true })
      await StatusBar.setBackgroundColor({ color: '#0000004d' })
    }

Other Technical Details

npm --version output: 8.19.0

node --version output: 14.18.1

pod --version output (iOS issues only):

Additional Context

rbalet avatar Sep 15 '22 10:09 rbalet

This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue.

Please see the Contributing Guide for how to create a Code Reproduction.

Thanks! Ionitron 💙

Ionitron avatar Sep 15 '22 10:09 Ionitron

It looks like this issue didn't get the information it needed, so I'll close it for now. If I made a mistake, sorry! I am just a bot.

Have a great day! Ionitron 💙

Ionitron avatar Oct 01 '22 00:10 Ionitron

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

ionitron-bot[bot] avatar Nov 10 '22 18:11 ionitron-bot[bot]