nielsjakob opened a new issue, #256:
URL: https://github.com/apache/cordova-plugin-statusbar/issues/256

   # Bug Report
   First of all, a big thank you to everybody contributing to Cordova <3
   
   ## Problem
   If I add the android platform via `cordova platform add [email protected]`, the 
plugin **does not** work on Android Studio's Simulator with **Android 13**.
   
   ### What is expected to happen?
   I am using the following code in `index.js` to get a **transparent status 
bar that randomly changes text color every 1s** (just to test the plugin):
   
   ```
   StatusBar.overlaysWebView(true);
       setInterval(() => {
         if(Math.random() > .5) {
           console.log('GO default');
           StatusBar.styleDefault();
         } else {
           console.log('GO light');
           StatusBar.styleLightContent();
         }
       }, 1000);
   ```
   
   This works in the simulator for the following Android versions:
   API 32 - Android 12
   API 30 - Android 11
   API 29 - Android 10
   API 28 - Android 9
   API 27 - Android 8.1
   API 25 - Android 7.1.1
   
   ### What does actually happen?
   ..but it doesn't work for "API 33 - Android 13". Instead the status bar just 
stays the **default white text on black background**.
   
   ## Information
   I'm in a 100% clean project from `cordova create hello com.example.hello 
HelloWorld` as per the Docs.
   
   If I add `[email protected]` instead of `[email protected]`, the plugin works on 
Android 13 just like on the other virtual device.
   
   ### Environment, Platform, Device, Version information
   cordova-plugin-statusbar 3.0.0
   Cordova Android 11.0.0
   Cordova CLI 11.0.0
   Android Studio Dolphin | 2021.3.1
   macOS Monterrey 12.6
   
   Some more info from `cdv-gradle-config.json`:
   ```
   {
     "MIN_SDK_VERSION": 22,
     "SDK_VERSION": 32,
     "COMPILE_SDK_VERSION": null,
     "GRADLE_VERSION": "7.4.2",
     "MIN_BUILD_TOOLS_VERSION": "32.0.0",
     "AGP_VERSION": "7.2.1",
     "KOTLIN_VERSION": "1.5.21",
     "ANDROIDX_APP_COMPAT_VERSION": "1.4.2",
     "ANDROIDX_WEBKIT_VERSION": "1.4.0",
     "ANDROIDX_CORE_SPLASHSCREEN_VERSION": "1.0.0-rc01",
     "GRADLE_PLUGIN_GOOGLE_SERVICES_VERSION": "4.3.10",
     "IS_GRADLE_PLUGIN_GOOGLE_SERVICES_ENABLED": false,
     "IS_GRADLE_PLUGIN_KOTLIN_ENABLED": false
   }
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to