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

Open
amirudin opened this Issue Feb 27, 2014 · 23 comments

Comments

Projects
None yet
8 participants
@amirudin

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

Reproducible with these sample app: AppID 727816

@amirudin amirudin added the Bug label Feb 27, 2014

@bau720123

This comment has been minimized.

Show comment
Hide comment
@bau720123

bau720123 Mar 13, 2014

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

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

@bau720123

This comment has been minimized.

Show comment
Hide comment
@wildabeast

This comment has been minimized.

Show comment
Hide comment
@wildabeast

wildabeast Apr 25, 2014

Member

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

Member

wildabeast commented Apr 25, 2014

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

@bau720123

This comment has been minimized.

Show comment
Hide comment
@bau720123

bau720123 Apr 26, 2014

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

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

@wildabeast

This comment has been minimized.

Show comment
Hide comment
@wildabeast

wildabeast Apr 26, 2014

Member

Thanks!

Member

wildabeast commented Apr 26, 2014

Thanks!

@bau720123

This comment has been minimized.

Show comment
Hide comment
@bau720123

bau720123 Apr 26, 2014

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)

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

This comment has been minimized.

Show comment
Hide comment
@wildabeast

wildabeast Apr 28, 2014

Member

yup, still fixing despite your workaround.

Member

wildabeast commented Apr 28, 2014

yup, still fixing despite your workaround.

@calebeaires

This comment has been minimized.

Show comment
Hide comment
@calebeaires

calebeaires Apr 29, 2014

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

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

@bau720123

This comment has been minimized.

Show comment
Hide comment
@calebeaires

This comment has been minimized.

Show comment
Hide comment
@calebeaires

calebeaires Apr 29, 2014

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();
    } 

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

This comment has been minimized.

Show comment
Hide comment
@bau720123

bau720123 Apr 29, 2014

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

what is your platform ?
winphone ? phone Model ?

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

what is your platform ?
winphone ? phone Model ?

@calebeaires

This comment has been minimized.

Show comment
Hide comment
@calebeaires

calebeaires Apr 29, 2014

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

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

This comment has been minimized.

Show comment
Hide comment
@bau720123

bau720123 Apr 30, 2014

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 ~

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

This comment has been minimized.

Show comment
Hide comment
@calebeaires

calebeaires Apr 30, 2014

It worked right now! Very thanks for your help.

It worked right now! Very thanks for your help.

@bau720123

This comment has been minimized.

Show comment
Hide comment

hi @calebeaires
good job~

@anjimi

This comment has been minimized.

Show comment
Hide comment
@anjimi

anjimi Jul 11, 2014

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!

anjimi commented Jul 11, 2014

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

This comment has been minimized.

Show comment
Hide comment
@bau720123

bau720123 Jul 11, 2014

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

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

This comment has been minimized.

Show comment
Hide comment
@javierClavei

javierClavei Sep 5, 2014

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

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

@wildabeast wildabeast self-assigned this Nov 27, 2014

@commonpike

This comment has been minimized.

Show comment
Hide comment
@commonpike

commonpike Mar 9, 2015

StatusBar.hide();

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

StatusBar.hide();

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

@bau720123

This comment has been minimized.

Show comment
Hide comment
@bau720123

bau720123 Mar 9, 2015

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

<gap:plugin name="org.apache.cordova.statusbar" version="0.1.4" />

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

<gap:plugin name="org.apache.cordova.statusbar" version="0.1.4" />

@wildabeast wildabeast removed the Bug label Sep 8, 2015

@tomchiverton

This comment has been minimized.

Show comment
Hide comment
@tomchiverton

tomchiverton Sep 21, 2015

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.

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

This comment has been minimized.

Show comment
Hide comment
@tomchiverton

tomchiverton Nov 27, 2015

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment