Skip to content

styleLightContent not working on iphone 11 #189

@Simbaclaws

Description

@Simbaclaws

Bug Report

Problem

When creating a dark background color of the statusbar by for example: StatusBar.backgroundColorByHexString('#000000');
and then doing:
StatusBar.styleLightContent();

then the text will be black on a black background on ios.

What is expected to happen?

The text should become a light variant on a dark background.

What does actually happen?

The text is dark on a dark background.

Command or Code

StatusBar.styleLightContent();

Environment, Platform, Device

Both on a real device as well as the emulator.

Version information


   Ionic CLI                     : 6.7.0 (/usr/local/lib/node_modules/@ionic/cli)
   Ionic Framework               : @ionic/angular 4.11.10
   @angular-devkit/build-angular : 0.803.26
   @angular-devkit/schematics    : 8.1.3
   @angular/cli                  : 8.1.3
   @ionic/angular-toolkit        : 2.2.0

Capacitor:

   Capacitor CLI   : 1.5.2
   @capacitor/core : 2.1.0

Cordova:

   Cordova CLI       : 9.0.0 (cordova-lib@9.0.1)
   Cordova Platforms : none
   Cordova Plugins   : no whitelisted plugins (0 plugins total)

Utility:

   cordova-res                          : 0.14.0
   native-run (update available: 1.0.0) : 0.2.8

System:

   Android SDK Tools : 25.2.4 (/users/doelapp/Library/Android/sdk/)
   ios-deploy        : 1.9.4
   NodeJS            : v12.1.0 (/usr/local/Cellar/node/12.1.0/bin/node)
   npm               : 6.13.7
   OS                : macOS Catalina
   Xcode             : Xcode 11.4.1 Build version 11E503a

Checklist

  • [ x ] I searched for existing GitHub issues
  • [ x ] I updated all Cordova tooling to most recent version
  • [ x ] I included all the necessary information above

The following issue might be related: #188

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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