phonegap / build

This is the public repository for PhoneGap Build source and bug tracking
92 stars 33 forks source link

[WinPhone] Full screen config.xml didn't work #267

Open amirudin opened 10 years ago

amirudin commented 10 years ago

Config.xml preference below didn't apply correctly on Windows Phone 8 <preference name="Fullscreen" value="true" />

Reproducible with these sample app: AppID 727816

bau720123 commented 10 years ago

I have the same issue any solution ? edit by WMAppManifest.xml ? how ?

amirudin commented 10 years ago

Related topic: https://getsatisfaction.com/nitobi/topics/wp8_fullscreen_app

bau720123 commented 10 years ago

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 ?

wildabeast commented 10 years ago

It looks like we're not copying preferences from the build config to the Win config. Fixing asap.

bau720123 commented 10 years ago

hi @wildabeast and @amirudin the plugin can solve the problem https://build.phonegap.com/plugins/715 I tried and work really great

wildabeast commented 10 years ago

Thanks!

bau720123 commented 10 years ago

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)

wildabeast commented 10 years ago

yup, still fixing despite your workaround.

calebeaires commented 10 years ago

@bau720123 - Can you describe how exactly do you did it? I have tried that plugin, but I had no success

bau720123 commented 10 years ago

hi @calebeaires just like the document said https://github.com/apache/cordova-plugin-statusbar/blob/bdbaf129595c4a4e3d957a1bc218d05dc5f82a9e/README.md

StatusBar.show();
or
StatusBar.hide();
calebeaires commented 10 years ago

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();
    } 
bau720123 commented 10 years ago

hi @calebeaires strange~ are you really use this plugin https://build.phonegap.com/plugins/715

what is your platform ? winphone ? phone Model ?

calebeaires commented 10 years ago

I am using it like this:

  1. => 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" />
  2. on custom.js
code here......
document.addEventListener("deviceready", onDeviceReady, false);
    function onDeviceReady() {
        StatusBar.hide();
    }

3 - <head /> - script phonegap.js on head/index.html

bau720123 commented 10 years ago

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 ~

calebeaires commented 10 years ago

It worked right now! Very thanks for your help.

bau720123 commented 10 years ago

hi @calebeaires good job~

anjimi commented 9 years ago

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!

bau720123 commented 9 years ago

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

javierClavei commented 9 years ago

I use the status bar plugin too, but I think that must solve

commonpike commented 9 years ago

StatusBar.hide();

in that plugin is not documented to work on winphone. did someone really test it on winphone ?

bau720123 commented 9 years ago

hi @commonpike I really test it on winphone just use this plugin

<gap:plugin name="org.apache.cordova.statusbar" version="0.1.4" />
tomchiverton commented 8 years ago

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.

tomchiverton commented 8 years ago

Also if Hydration is on, even the non-platform specific version doesn't take effect.