Skip to content
This repository has been archived by the owner on Oct 29, 2022. It is now read-only.

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

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

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

amirudin opened this issue Feb 27, 2014 · 23 comments
Assignees

Comments

@amirudin
Copy link

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
Copy link

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

@amirudin
Copy link
Author

@bau720123
Copy link

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
Copy link
Collaborator

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

@bau720123
Copy link

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

@wildabeast
Copy link
Collaborator

Thanks!

@bau720123
Copy link

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
Copy link
Collaborator

yup, still fixing despite your workaround.

@calebeaires
Copy link

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

@bau720123
Copy link

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

StatusBar.show();
or
StatusBar.hide();

@calebeaires
Copy link

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
Copy link

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

what is your platform ?
winphone ? phone Model ?

@calebeaires
Copy link

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
Copy link

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
Copy link

It worked right now! Very thanks for your help.

@bau720123
Copy link

hi @calebeaires
good job~

@anjimi
Copy link

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
Copy link

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
Copy link

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

@wildabeast wildabeast self-assigned this Nov 27, 2014
@commonpike
Copy link

StatusBar.hide();

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

@bau720123
Copy link

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
Copy link

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

8 participants