[ 
https://issues.apache.org/jira/browse/CB-14107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16501611#comment-16501611
 ] 

Brian Grieco edited comment on CB-14107 at 6/6/18 10:58 AM:
------------------------------------------------------------

[~menardi] thanks for your comment, but adding that line did not fix the issue 
for me. maybe i implemented it wrong?

 

My AndroidManifest.xml looks like this:

{code:xml}<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
 package="org.apache.cordova" android:versionName="1.0" android:versionCode="1">
 <uses-sdk android:minSdkVersion="16" />
 <meta-data android:name="android.max_aspect" android:value="2.1" />
</manifest>{code}


was (Author: [email protected]):
[~menardi] thanks for your comment, but adding that line did not fix the issue 
for me. maybe i implemented it wrong?

 

My AndroidManifest.xml looks like this:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android";
 package="org.apache.cordova" android:versionName="1.0" android:versionCode="1">
 <uses-sdk android:minSdkVersion="16" />
 <meta-data android:name="android.max_aspect" android:value="2.1" />
</manifest>

> 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, pic3.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).
> Update:
> When turned to portrait mode, the coloured status bar appears, but 
> incorrectly (pic3).
> 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:java}
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to