mosababubakr commented on issue #170: [android] StatusBarOverlaysWebView defaults to true not work {broken} URL: https://github.com/apache/cordova-plugin-statusbar/issues/170#issuecomment-554949238 > > Hello @breautek > > I add js api and it work, but i think this just temporary solution and not the optimal. > > Maybe someone can solve this issue soon. > > Regards > > Can you show me example how it works for you? Hello @diamond95 You can add `StatusBar.overlaysWebView(true);` after deviceReady Event fires. for e.g.: document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { if (cordova.platformId == 'android') { StatusBar.overlaysWebView(true); } //......... some codes........ }
---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cordova.apache.org For additional commands, e-mail: commits-h...@cordova.apache.org