Open amirudin opened 10 years ago
I have the same issue any solution ? edit by WMAppManifest.xml ? how ?
Related topic: https://getsatisfaction.com/nitobi/topics/wp8_fullscreen_app
hi @amirudin is it any help? http://www.excellentwebworld.com/common-problems-solution-for-windows-phone-8-phonegap/
but I try,not work,maybe I did wrong ?
It looks like we're not copying preferences from the build config to the Win config. Fixing asap.
hi @wildabeast and @amirudin the plugin can solve the problem https://build.phonegap.com/plugins/715 I tried and work really great
Thanks!
hi @wildabeast You're welcome but... if can only set the Parameter "Fullscreen" to control the "WinPhone" to true or false I think it is a more wise decision (Not just rely on 3rd Party Plugins)
yup, still fixing despite your workaround.
@bau720123 - Can you describe how exactly do you did it? I have tried that plugin, but I had no success
hi @calebeaires just like the document said https://github.com/apache/cordova-plugin-statusbar/blob/bdbaf129595c4a4e3d957a1bc218d05dc5f82a9e/README.md
StatusBar.show();
or
StatusBar.hide();
Still don`t work even if I use it like above on the main JS file.
document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { StatusBar.hide(); }
hi @calebeaires strange~ are you really use this plugin https://build.phonegap.com/plugins/715
what is your platform ? winphone ? phone Model ?
I am using it like this:
=> config.xml
<preference name="fullscreen" value="true" /> <gap:plugin name="org.apache.cordova.statusbar" version="0.1.4" /> <preference name="StatusBarOverlaysWebView" value="false" /> <preference name="StatusBarBackgroundColor" value="#000000" /> <gap:platform name="winphone" />
code here...... document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { StatusBar.hide(); }
3 - <head /> - script phonegap.js on head/index.html
hi @calebeaires My environment is phonegap build 3.4 (build.phonegap.com) and ...
1 => config.xml
<preference name="phonegap-version" value="3.4.0" />
<preference name="fullscreen" value="false" />
<gap:plugin name="org.apache.cordova.statusbar" version="0.1.4" />
2 => location
<head>
<script src="phonegap.js" type="text/javascript"></script>
<script src="your_custom.js" type="text/javascript"></script>
<script type="text/javascript">
document.addEventListener("deviceready", startEvents, false);
function startEvents()
{
StatusBar.hide();
}
</script>
</head>
just try my setting first ~ and feedback your result ~
It worked right now! Very thanks for your help.
hi @calebeaires good job~
I found the fullscreen preference in config.xml didn't work on iOS or Android, but the plugin method suggested by @bau720123 seems to work, thank you!
hi all although the plugin that I suggest is work for now,but I still Hope the phonegap team can solve this problem that's all
I use the status bar plugin too, but I think that must solve
StatusBar.hide();
in that plugin is not documented to work on winphone. did someone really test it on winphone ?
hi @commonpike I really test it on winphone just use this plugin
<gap:plugin name="org.apache.cordova.statusbar" version="0.1.4" />
Adding
<preference name="Fullscreen" value="true" />
works for me on our Lumia. no plugin required.
What didn't work was doing this only on Windows
<platform name="wp8">
<preference name="Fullscreen" value="true" />
</platform>
this still ran with a status bar.
Also if Hydration is on, even the non-platform specific version doesn't take effect.
Config.xml preference below didn't apply correctly on Windows Phone 8
<preference name="Fullscreen" value="true" />
Reproducible with these sample app: AppID 727816