I am creating an App with Phonegap Desktop App and sometimes using Phonegap Build and I noticed that my site is correctly as big as my display.
Problem: The different devices have for example a status bar (clock, battery-status, etc.) and for example my Nexus has even a bottom bar with controlling buttons that are displayed over my Application. My (with css position:fixed) navbars are scrolling under these device-native-bars.
Any idea how to refuse this or subtract these bars? I can even see this if I have NO costum styles or styling libraries included.
<html>
<head>
<meta charset="utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="msapplication-tap-highlight" content="no" />
<meta name="viewport" content="user-scalable=no, initial-scale=1,
maximum-scale=1, minimum-scale=1, width=device-width,
height=viewport-height, target-densitydpi=device-dpi" />
<title>Streetreporter</title>
<!-- jQuery library -->
<script src="libs/jQuery/jquery-1.12.4.js" type="text/javascript"></script>
<script type="text/javascript" src="cordova.js"></script>
</head>
<body >
TO DO content
<script type="text/javascript" src="js/index.js"></script>
</body>
</html>
<?xml version="1.0" encoding="UTF-8"?>
<!-- config.xml reference: https://build.phonegap.com/docs/config-xml -->
<widget xmlns = "http://www.w3.org/ns/widgets"
xmlns:gap = "http://phonegap.com/ns/1.0"
id = "app.streetreporter"
version = "0.1.0">
<name>Streetreporter+Camera API Test</name>
<description>
Hello World sample application that responds to the deviceready event.
</description>
<author href="http://phonegap.com" email="support@phonegap.com">
PhoneGap Team
</author>
<content src="index.html"/>
<preference name="permissions" value="none"/>
<preference name="orientation" value="default" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="true" />
<preference name="webviewbounce" value="true" />
<preference name="prerendered-icon" value="true" />
<preference name="stay-in-webview" value="true" />
<preference name="ios-statusbarstyle" value="black-opaque" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="show-splash-screen-spinner" value="true" />
<preference name="auto-hide-splash-screen" value="true" />
<preference name="disable-cursor" value="false" />
<preference name="android-installLocation" value="auto" />
</widget>
To avoid this problem dont use fullscreen mode:
<preference name="fullscreen" value="false" />