2

I'm trying to make an image go to full screen when clicked on for mobile using screenfull.js. However when I run the iOS simulator the line if (screenfull.enabled) is not passing.

Does anyone know how I can make this work for safari mobile? I'm trying to use it to make a pinch and zoom feature for images on my website.

MarksCode
  • 8,074
  • 15
  • 64
  • 133

1 Answers1

1

I learned, iOS Safari does not support the native Fullscreen API http://caniuse.com/#search=fullscreen (which is what screefull.js uses underneath to implement it's API). You can try

<meta name="apple-mobile-web-app-capable" content="YES"> 

But only work with "Add to home screen"

Stéphane Bruckert
  • 21,706
  • 14
  • 92
  • 130
Rawan-25
  • 1,753
  • 1
  • 17
  • 25