Apple requires that no text scroll through the transparent status bar.
I use the plugin inAppBrowserin my PhoneGap Build application , which runs exactly in this problem. For some reason, it inAppBrowserignores the background that I set for my application and just displays the website behind the status bar objects.
I use StatusBarPluginJavascript to control my Status Bar:
document.addEventListener("deviceready", onDeviceReady, false);
var iabRef = null;
function iabLoadStart(event) {
StatusBar.hide();
}
function iabLoadStop(event) {
}
function iabClose(event) {
StatusBar.show();
iabRef.removeEventListener('loadstart', iabLoadStart);
iabRef.removeEventListener('loadstop', iabLoadStop);
iabRef.removeEventListener('exit', iabClose);
}
function openPage(url) {
window.open(url, '_blank', 'location=yes,enableViewportScale=yes,');
}
function setStatusBar() {
StatusBar.show();
StatusBar.overlaysWebView(false);
StatusBar.backgroundColorByHexString("#C8DB2F");
}
function onDeviceReady() {
checkConnection();
setStatusBar();
iabRef.addEventListener('loadstart', iabLoadStart);
iabRef.addEventListener('loadstop', iabLoadStop);
iabRef.addEventListener('exit', iabClose);
}
I saw similar questions following here , but the answers did not help solve my problem.
5mark source
share