Can we force a PWA tablet app to be in landscape orientation?

3
HI all We have a PWA app where we mainly want to work in landscape. Can we force this orientation? I know for native apps you can select this option in the building phase, but it seems we cannot configure this for a PWA profile tablet.   Any help would be welcome.   Kind regards   Kevin
asked
1 answers
1

The webapp manifest of a PWA has a orientation property and can be set in the manifest-overrides.manifest file. This directive is however not supported on safari ios.

https://docs.mendix.com/refguide/mobile/introduction-to-mobile-technologies/progressive-web-app/#51-web-app-manifest 
https://developer.mozilla.org/en-US/docs/Web/Manifest/orientation


An alternative would be to use css to display a warning that portrait mode is not supported and the user should turn his screen.

answered