← Back to team overview

ubuntu-phone team mailing list archive

Re: Webapp Development

 

On 07/10/14 08:44, Olivier Tilloy wrote:
On Mon, Oct 6, 2014 at 11:24 PM, Mitchell Reese
<projects@xxxxxxxxxxxxxxxxxxxxx> wrote:
1. Is there any way currently for webapps to be fullscreen when in
     landscape mode? I'm talking about the notification bar disappearing
     when rotating the device on it's side. There are already a couple
     apps that do this (gallery, etc.) and it would be great to have this
     functionality for webapps. Working on a couple games, and something
     just doesn't look right with the notification bar wrong way up on
     the left hand side of the device. It would be great if apps being
     used in landscape mode had this functionality. Is anything like this
     currently possible, or planned?
Webapps (and web pages) that request fullscreen should hide the
notifications bar. This was not enabled until now because of bug
#1328839, but the bug has been fixed, and I submitted a change to
reflect that in the browser and the webapps container

(https://code.launchpad.net/~osomon/webbrowser-app/fullscreen-workaround-1328839/+merge/237234).
Expect this to land soon.
Great, am currently on the dev image for the RTM release, so will hopefully
see this soon. What's the code to enable this in webapps?
Use the DOM fullscreen API in the app itself:
https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Using_full_screen_mode.
Thanks


References