phonegap Inappbrowser not displaying toolbar (ios)
I have tried everything possible to my understand and also calling the
inappbrowser as esplained on the phonegap website, its working but i can't
seem to get status bar displayed and it doesn't launch in fullscreen.
I have user the code below in my webpage tag.
<script type="text/javascript">
function onDeviceReady() {
var ref = window.open('http://www.bbc.co.uk', '_blank',
'location=yes');
// close InAppBrowser after 5 seconds
setTimeout(function() {
ref.close();
}, 5000);
}
</script>
Used the
onClick="onDeviceReady();
which is perfectly launching the inappbrowser. I have have done everything
possible with my config.xml and please find code below
<preference name="phonegap-version" value="2.9.0" />
<preference name="permissions" value="none" />
<preference name="orientation" value="landscape" />
<preference name="target-device" value="tablet" />
<preference name="fullscreen" value="true" />
<preference name="webviewbounce" value="false" />
<preference name="prerendered-icon" value="true" />
<preference name="stay-in-webview" value="false" />
<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="load-url-timeout" value="15000" />
<preference name="FadeSplashScreen" value="true" />
<preference name="FadeSplashScreenDuration" value=".25" />
<preference name="TopActivityIndicator" value="gray" />
<preference name="ShowSplashScreenSpinner" value="true" />
but nothing seem to bring up the browser toolbar. Been on this for 2days
now and i have tested it on both the simulator and live device. the
inappbrowser shows up but not in fullscreen and without the toolbar.
Any help will do and thanks in advance.
No comments:
Post a Comment