Rotate to landscape mode in pwa
-
I have a quasar app that I build in PWA mode. When I visit the app through a mobile browser (chrome) and rotate my screen the app switches to landscape mode (probably because this is being handeld by the browser. However when I do the same with the PWA added to my homescreen it doesn’t flip anymore. Anybody know where to change this behaviour?
-
In quasar.conf.js
pwa: { manifest: { display: 'standalone', orientation: 'landscape',
All other options are listed here: https://developer.mozilla.org/en-US/docs/Web/Manifest#orientation
-
That’s it. Thanks. I just removed the orientation so it will use the default phone settings and listen to the orientation lock.