# Struggling to run in full-screen mode (iOS + Chrome)

**URL:** <https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008>\
**Category:** Help & Support\
**Created:** [June 13, 2016, 11:32am UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008 "2016-06-13T11:32:28Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![FinbarSaunders](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/finbarsaunders/32/1315_2.png) [@FinbarSaunders](https://forum.playcanvas.com/u/FinbarSaunders)\
**Post date:** [June 13, 2016, 11:32am UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/1 "2016-06-13T11:32:29Z")

</div>

Hi there!

I have a game which I’d like to run in full-screen on Chrome browser running on iOS (iPhone 6).  
Referring to the documentation, I see that calling app.EnableFullscreen is the recommended route.

[http://developer.playcanvas.com/en/api/pc.Application.html#enableFullscreen](http://developer.playcanvas.com/en/api/pc.Application.html#enableFullscreen)

I can get this to work on the PC Chrome browser, respond to a mouse-click event, as follows:

```
     // This works on the PC Chrome browser - I click my mouse, and success - browser switches to full-screen mode.
    var bdy = document.body;
    bdy.addEventListener('click', function () {
        console.error( 'click event - going to call app.enableFullscreen()' );
        app.enableFullscreen(app.canvas, function () {
            console.error('Now fullscreen');
        }, function () {
            console.error('Something went wrong!');
        });
    }, false);

```

Now if I add very similar code, but responding to the _touchstart_ event, I’d hope that when I run the app on my iOS Chrome browser, it would get rid of the URL bar etc.

```
           bdy.addEventListener('touchstart', function () {
                console.error( 'touchstart event - going to call app.enableFullscreen()' );
                app.enableFullscreen(app.canvas, function () {
                    console.error('Now fullscreen');
                }, function () {
                    console.error('Something went wrong!');
                });
            }, false);

```

What happens on my iPhone is that “touchstart event - going to call app.enableFullscreen()” displays on the console, but there is no other TTY, and the browser doesn’t switch to fullscreen mode.

I’ve just tried running this on iOS Safari, and the same outcome - no fullscreen.

Hope that someone is able to advise me!

---

<div class="post-metadata">

**Author:** ![will](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/will/32/4560_2.png) [@will](https://forum.playcanvas.com/u/will)\
**Post date:** [June 13, 2016, 11:51am UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/2 "2016-06-13T11:51:49Z")

</div>

The Fullscreen API is not supported in iOS Safari:

[http://caniuse.com/#feat=fullscreen](http://caniuse.com/#feat=fullscreen)

And since Chrome for iOS is based on iOS Safari (rather than Blink), it too does not support it.

In iOS Safari, the browser does go fullscreen if you switch to landscape (say for Cardboard VR rendering), but iOS Chrome can’t do this.

According to [webglstats.com](http://webglstats.com), iOS Chrome seems to have about 5% of iOS traffic to the sites listed. Slightly more than I expected, TBH.

You could try opening a bug on Chromium if you’d like Google to look into this.

[https://bugs.chromium.org/p/chromium/issues/list](https://bugs.chromium.org/p/chromium/issues/list)

---

<div class="post-metadata">

**Author:** ![FinbarSaunders](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/finbarsaunders/32/1315_2.png) [@FinbarSaunders](https://forum.playcanvas.com/u/FinbarSaunders)\
**Post date:** [June 13, 2016, 12:14pm UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/3 "2016-06-13T12:14:24Z")

</div>

Thanks Will.

What a shame 😭

I’m running in landscape, and doing so both on iOS Chrome & Safari, but still seeing the address bar etc. on both browsers.

Oh well, at least I know I’m not going crazy, and thanks for the tip regarding [caniuse.com](http://caniuse.com) - will no doubt be referring to that from now on.

---

<div class="post-metadata">

**Author:** ![will](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/will/32/4560_2.png) [@will](https://forum.playcanvas.com/u/will)\
**Post date:** [June 13, 2016, 12:39pm UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/4 "2016-06-13T12:39:37Z")

</div>

What iOS device to you have? 6 Plus? iPad? Certainly, on the 4S and 6, the page goes fullscreen, with no browser address bar, when you flip to landscape.

I know iPads don’t remove the address bar in the same way. Because the 6 Plus is so large, it may behave more like an iPad than the other iPhones.

---

<div class="post-metadata">

**Author:** ![FinbarSaunders](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/finbarsaunders/32/1315_2.png) [@FinbarSaunders](https://forum.playcanvas.com/u/FinbarSaunders)\
**Post date:** [June 13, 2016, 1:06pm UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/5 "2016-06-13T13:06:00Z")

</div>

I’m using an iPhone 6S Plus. So yeah, maybe you’re right about the size of the 6S plus making it behave like an iPad… I’ll see if it’s any different on my iPhone 4S.

---

<div class="post-metadata">

**Author:** ![FinbarSaunders](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/finbarsaunders/32/1315_2.png) [@FinbarSaunders](https://forum.playcanvas.com/u/FinbarSaunders)\
**Post date:** [June 13, 2016, 1:13pm UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/6 "2016-06-13T13:13:41Z")

</div>

Ah, on my 6S+ on _Safari_ it does go full-screen when in Landscape.

I was just using Chrome on the 6S+, and that does not go full-screen in landscape.

I’ll use Safari then for developing my game 🙂

---

<div class="post-metadata">

**Author:** ![Jerome\_Binachon](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/jerome_binachon/32/4722_2.png) [@Jerome\_Binachon](https://forum.playcanvas.com/u/Jerome_Binachon)\
**Post date:** [August 8, 2016, 11:43pm UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/7 "2016-08-08T23:43:13Z")

</div>

If you want to have your app fullscreen on ios safari on (nearly?) any iPhone/iPad… you ‘just’ have to save the web page as a home screen App : [https://www.maketecheasier.com/save-web-page-as-home-screen-app-ios/](https://www.maketecheasier.com/save-web-page-as-home-screen-app-ios/).

ps : landscape is nearly perfect depending on device (ipad, ipadpro, iphone…) , portrait… you still have some info…

---

<div class="post-metadata">

**Author:** ![AmbushGames](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/ambushgames/32/4928_2.png) [@AmbushGames](https://forum.playcanvas.com/u/AmbushGames)\
**Post date:** [August 10, 2016, 1:59pm UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/8 "2016-08-10T13:59:53Z")

</div>

When developing, use Chrome because on my iPad mini at least, Safari crashes. Can’t use PlayCanvas on Safari.

---

<div class="post-metadata">

**Author:** ![FinbarSaunders](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/finbarsaunders/32/1315_2.png) [@FinbarSaunders](https://forum.playcanvas.com/u/FinbarSaunders)\
**Post date:** [August 10, 2016, 7:27pm UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/9 "2016-08-10T19:27:05Z")

</div>

Safari works OK for me on iPhone 6S+ and iPad 2. Might be due to the mini’s lower RAM perhaps? (Just speculating).

---

<div class="post-metadata">

**Author:** ![max](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/max/32/477_2.png) [@max](https://forum.playcanvas.com/u/max)\
**Post date:** [August 11, 2016, 11:58am UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/10 "2016-08-11T11:58:05Z")

</div>

It should work, as PlayCanvas consumes very little RAM. It might not work due to outdated iOS version.

---

<div class="post-metadata">

**Author:** ![mikefinch](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/mikefinch/32/1606_2.png) [@mikefinch](https://forum.playcanvas.com/u/mikefinch)\
**Post date:** [August 11, 2016, 5:49pm UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/11 "2016-08-11T17:49:23Z")

</div>

Safari on iOS 8 has bug with memory. When page takes more than 3 mb of memory, it reloads.  
But usually I got this with a tons of JS, not when page is large because of images, text etc.

So If your browser crashes with PlayCanvas, there better be another reason.

---

<div class="post-metadata">

**Author:** ![AmbushGames](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/ambushgames/32/4928_2.png) [@AmbushGames](https://forum.playcanvas.com/u/AmbushGames)\
**Post date:** [August 12, 2016, 12:12am UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/12 "2016-08-12T00:12:26Z")

</div>

I dunno what the reason is. It’s running the latest iOS 9 version.

---

<div class="post-metadata">

**Author:** ![Prateek\_Rusia](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/p/58956e/32.png) [@Prateek\_Rusia](https://forum.playcanvas.com/u/Prateek_Rusia)\
**Post date:** [July 20, 2017, 7:04am UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/13 "2017-07-20T07:04:38Z")

</div>

Hello,

I see this Topic is a year old. and people must have done lot of R&D in a year to have a full screen feature on iOS and Android.

Do we have any update to make our Game Full Screen by now ?

Best

---

<div class="post-metadata">

**Author:** ![will](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/will/32/4560_2.png) [@will](https://forum.playcanvas.com/u/will)\
**Post date:** [July 20, 2017, 11:01am UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/14 "2017-07-20T11:01:57Z")

</div>

In a post above I linked to the following:

[https://caniuse.com/#feat=fullscreen](https://caniuse.com/#feat=fullscreen)

You can see that it is still the case that fullscreen works on Android but not on iOS.

---

<div class="post-metadata">

**Author:** ![JeffreyJacobson](https://forum.playcanvas.com/letter_avatar_proxy/v4/letter/j/77aa72/32.png) [@JeffreyJacobson](https://forum.playcanvas.com/u/JeffreyJacobson)\
**Post date:** [March 15, 2018, 12:06am UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/15 "2018-03-15T00:06:29Z")

</div>

Thanks, Jerome! That totally worked. 🙂

---

<div class="post-metadata">

**Author:** ![Jerome\_Binachon](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/jerome_binachon/32/4722_2.png) [@Jerome\_Binachon](https://forum.playcanvas.com/u/Jerome_Binachon)\
**Post date:** [December 2, 2018, 4:13am UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/16 "2018-12-02T04:13:18Z")

</div>

one more thing for fullscreen on iphoneX, just add in any script initialize function prototype

```javascript
window.parent.document.querySelector("meta[name=viewport]").setAttribute("content","initial-scale=1.0, viewport-fit=cover");

```

---

<div class="post-metadata">

**Author:** ![Thomas\_Due\_Nielsen](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/thomas_due_nielsen/32/5284_2.png) [@Thomas\_Due\_Nielsen](https://forum.playcanvas.com/u/Thomas_Due_Nielsen)\
**Post date:** [July 8, 2020, 7:58am UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/17 "2020-07-08T07:58:56Z")

</div>

RAM is vital to PlayCanvas working properly. Loading glB requires above iPhone 6 to load; cross applet borders. cf [[SOLVED] glTF vs USDZ ... any buzz?](https://forum.playcanvas.com/t/solved-gltf-vs-usdz-any-buzz/13125)

---

<div class="post-metadata">

**Author:** ![yaustar](https://forum.playcanvas.com/user_avatar/forum.playcanvas.com/yaustar/32/2268_2.png) [@yaustar](https://forum.playcanvas.com/u/yaustar)\
**Post date:** [July 8, 2020, 8:41am UTC](https://forum.playcanvas.com/t/struggling-to-run-in-full-screen-mode-ios-chrome/2008/18 "2020-07-08T08:41:05Z")

</div>

> [@Thomas\_Due\_Nielsen](#):
>
> Loading glB requires above iPhone 6 to load

It really depends on what is in the GLB. The test examples I have work fine on an iPhone 5S but they are pretty light on textures.

Uncompressed textures take a lot of VRAM usage and I believe that we now support Basis compressed textures in GLBs now (make sure you have the Basis WASM module from the store)

 ![image](https://forum-files-playcanvas-com.s3.dualstack.eu-west-1.amazonaws.com/original/2X/7/7b04853b7b85a1bbb3bf60f43ae311eaa8667557.jpeg)

If you have GLBs that you want to run on low memory devices, I recommend compressing the textures to Basis which will take significantly less VRAM than an compressed texture.

Edit: See more details here: [Add support for all texture formats when loading them as part of glb/gltf · Issue #2101 · playcanvas/engine · GitHub](https://github.com/playcanvas/engine/issues/2101)
