Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Full screen api HTML5 and Safari (iOS 6)

I'm trying to make an application to run in full screen mode (without the top bar) in Safari for iOS 6. The code is as follows:

var elem = document.getElementById("element_id");
if (elem.requestFullScreen) {
  elem.requestFullScreen();
} else if (elem.mozRequestFullScreen) {
  elem.mozRequestFullScreen();
} else if (elem.webkitRequestFullScreen) {
  elem.webkitRequestFullScreen();
}

It works well on desktop browsers. But in Mobile Safari (iOS) 6 does not work.

Any idea about this issue?

like image 808
R.C. Avatar asked Oct 10 '12 15:10

R.C.


1 Answers

It's not supported...

http://caniuse.com/fullscreen

like image 62
ndm Avatar answered Oct 11 '22 14:10

ndm



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!