0

I'm using meta tag to put web app in full screen on iPad

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

Is there a way so I can check is app in full screen ?

Main reason for this is to increase wrapper height if app is in full screen mode?

ThinkingStiff
  • 64,767
  • 30
  • 146
  • 239
Wlada
  • 1,052
  • 14
  • 25

1 Answers1

2

You can use the following Javascript to determine that on iOS devices.

if(!!window.navigator.standalone){
  //browser
}else{
  //full screen
}

Using that function will determine the current state and execute the corresponding code.

Jonathan
  • 996
  • 1
  • 7
  • 27