Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PWA - Forcing orientation to landscape not working

We have a PWA on an Ipad where the manifest file specificy indicates it should be run on landscape mode, however I can still rotate the screen on the app.

Here is my manifest file

  "name": "App",
  "short_name": "App",
  "theme_color": "rgba(33,150,243,0)",
  "background_color": "rgba(33,150,243,0)",
  "display": "standalone",
  "orientation": "landscape",
  "Scope": "/",
  "start_url": "/",
  "prefer_related_application" : false,
  "icons": [
    {
      "src": "images/icons/icon-72x72.png",
      "sizes": "72x72",
      "type": "image/png"
    }
  ],
  "splash_pages": null
}

As you can see "orientation": "landscape", is set, but it is not behaving that way. Any idea how to force it in a PWA?

like image 787
S_W Avatar asked Oct 28 '25 08:10

S_W


1 Answers

As of today April 2020, the latest iOS Safari (iOS 13) has only partial support for manifest files.

And orientation does not seem supported. It will work on Android though.

You could have a look at this question for some details and workarounds.

like image 108
Kev Avatar answered Oct 30 '25 23:10

Kev



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!