Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[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

@amirudin amirudin commented Feb 27, 2014

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

@bau720123 bau720123 commented Mar 13, 2014

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

@amirudin
Copy link
Author

@amirudin amirudin commented Mar 21, 2014

@bau720123
Copy link

@bau720123 bau720123 commented Mar 21, 2014

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

@wildabeast wildabeast commented Apr 25, 2014

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

@bau720123
Copy link

@bau720123 bau720123 commented 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

@wildabeast
Copy link
Collaborator

@wildabeast wildabeast commented Apr 26, 2014

Thanks!

@bau720123
Copy link

@bau720123 bau720123 commented 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)

@wildabeast
Copy link
Collaborator

@wildabeast wildabeast commented Apr 28, 2014

yup, still fixing despite your workaround.

@calebeaires
Copy link

@calebeaires calebeaires commented Apr 29, 2014

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

@bau720123
Copy link

@bau720123 bau720123 commented Apr 29, 2014

@calebeaires
Copy link

@calebeaires calebeaires commented 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();
    } 
@bau720123
Copy link

@bau720123 bau720123 commented 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 ?

@calebeaires
Copy link

@calebeaires calebeaires commented 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

@bau720123
Copy link

@bau720123 bau720123 commented 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 ~

@calebeaires
Copy link

@calebeaires calebeaires commented Apr 30, 2014

It worked right now! Very thanks for your help.

@bau720123
Copy link

@bau720123 bau720123 commented Apr 30, 2014

hi @calebeaires
good job~

@anjimi
Copy link

@anjimi 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

@bau720123 bau720123 commented 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

@javierClavei
Copy link

@javierClavei javierClavei commented Sep 5, 2014

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

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

@commonpike commonpike commented Mar 9, 2015

StatusBar.hide();

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

@bau720123
Copy link

@bau720123 bau720123 commented 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" />
@wildabeast wildabeast removed the Bug label Sep 8, 2015
@tomchiverton
Copy link

@tomchiverton tomchiverton commented 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.

@tomchiverton
Copy link

@tomchiverton tomchiverton commented Nov 27, 2015

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
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants
You can’t perform that action at this time.