[ https://issues.apache.org/jira/browse/CB-14107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Grieco updated CB-14107: ------------------------------ Comment: was deleted (was: Hello [~menardi], thanks for your comment, I introduced your line of code but it does not seem to be working. Maybe I put I am missing something from my config.xml? {{ <?xml version='1.0' encoding='utf-8'?> <widget id="io.cordova.hellocordova" version="1.0.0" xmlns:android="http://schemas.android.com/apk/res/android" xmlns:cdv="http://cordova.apache.org/ns/1.0"> <name>CustomFit</name> <description> Work out with a virtual trainer, create your own work outs, track your progress. </description> <author email="brian.g.gri...@gmail.com" href="http://b.g.grieco.github.io"> Brian G. Grieco </author> <content src="index.html" /> <access origin="*" /> <allow-navigation href="*" /> <allow-intent href="*" /> <platform name="android"> <allow-intent href="market:*" /> <meta-data android:name="android.max_aspect" android:value="2.1" /> <splash density="port-xxxhdpi" src="res/screen/android/splash-port-xxxhdpi.png" /> <resource-file src="res/android/values/ic_launcher_background.xml" target="app/src/main/res/values/ic_launcher_background.xml" /> <resource-file src="res/android/mipmap-xxxhdpi/ic_launcher.png" target="app/src/main/res/mipmap-xxxhdpi/ic_launcher.png" /> <resource-file src="res/android/mipmap-xxxhdpi/ic_launcher_round.png" target="app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png" /> <preference name="StatusBarBackgroundColor" value="#CF4D4D" /> <preference name="SplashScreenDelay" value="2500" /> <preference name="FadeSplashScreenDuration" value="500" /> <preference name="SplashMaintainAspectRatio" value="true" /> <preference name="ShowSplashScreenSpinner" value="false" /> </platform> <platform name="ios"> <allow-intent href="itms:*" /> <allow-intent href="itms-apps:*" /> </platform> <plugin name="cordova-plugin-statusbar" spec="^2.4.2" /> <plugin name="cordova-plugin-splashscreen" spec="^5.0.2" /> <plugin name="cordova-plugin-whitelist" spec="^1.3.3" /> <engine name="android" spec="^7.0.0" /> </widget> }}) > StatusBar Plugin does not work correctly on Samsung S9 > ------------------------------------------------------ > > Key: CB-14107 > URL: https://issues.apache.org/jira/browse/CB-14107 > Project: Apache Cordova > Issue Type: Bug > Components: cordova-android, cordova-plugin-statusbar > Affects Versions: 8.0.0 > Reporter: Brian Grieco > Assignee: Joe Bowser > Priority: Major > Labels: features, plug-in, plugin > Attachments: pic1.png, pic2.jpg > > > I have a cordova project and I installed the StatusBar plugin to color the > status bar of the device in the Android platform. The plugin displays the > correct status bar color if I run the project on an AVD (pic1), but when I > run it on the device it does not appear to work. > I also noticed that when I run the project on device with the plug in > uninstalled the view takes up the entire screen, but if I run it with the > plugin installed there is black space between the app view and the top and > bottom of the phone's nav bar and status bar (pic2). > Device: Samsung S9 running Android 8.0.0 (Oreo) > Cordova version: 8.0.0 > StatusBar plugin version: 2.4.2 > Cordova whitelist plugin: 1.3.3 > > Index.js code: > {code} > var app = { > initialize: function() { > document.addEventListener('deviceready', > this.onDeviceReady.bind(this), false); > }, > onDeviceReady: function() { > this.receivedEvent('deviceready'); > StatusBar.backgroundColorByHexString("#CF4D4D"); > }, > receivedEvent: function(id) { } > }; > app.initialize(); > {code} -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org