You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/09/25 16:48:20 UTC

[GitHub] [cordova-plugin-statusbar] diamond95 opened a new issue #155: Plugin not working on Android 9

diamond95 opened a new issue #155: Plugin not working on Android 9
URL: https://github.com/apache/cordova-plugin-statusbar/issues/155
 
 
   I'm trying to fix issue with StatusBarOverlaysWebView, but it's not working on Android 9. 
   
   How it looks like on Android 9: https://ibb.co/BZ4KVpB
   
   How it looks like on PhoneGap Developer Application: https://ibb.co/W5574HC
   
   I tried every possible combination editing config.xml. Now my config.xml look like this: 
   `<platform name="android">
       <preference name="StatusBarStyle" value="lightcontent" />
           <preference name="android-minSdkVersion" value="21" />
           <allow-intent href="market:*" />
           <preference name="StatusBarBackgroundColor" value="#000000" />
            <preference name="StatusBarDefaultScrollToTop" value="false" />
            <preference name="StatusBarOverlaysWebView" value="true" />
       </platform>`
   
   I run plugin with JS and it gives me normally object of StatusBar:
   
   ```
     document.addEventListener('deviceready', fullScreen);
     function fullScreen() {
       AndroidFullScreen.setSystemUiVisibility(AndroidFullScreen.SYSTEM_UI_FLAG_FULLSCREEN | AndroidFullScreen.SYSTEM_UI_FLAG_LOW_PROFILE);
       console.log(StatusBar);
       if (cordova.platformId == 'android') {
         StatusBar.overlaysWebView(true);
         StatusBar.backgroundColorByHexString('#33000000');
          
       } 
     }
   ```
   
   Is there any trick about this? 

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org