The discussion revolves around the orientation property in the manifest.json file, which was changed from portrait to any, causing issues with the native Android orientation lock on Chrome for Android. larsgw suggests omitting the property, citing the Web App of dev.to as an example that works fine without it. Falco explains the history of the property changes and agrees to research the issue further.
After researching, Falco implements a fix by removing the orientation property, which should allow the system-wide orientation lock to be respected. abass confirms that the fix should remedy the issues.
However, danekhollas reports that they still have issues after restarting their phone, prompting Falco to advise uninstalling and reinstalling the PWA for the changes to take effect. larsgw confirms that the fix works for them, although they didn’t need to reinstall the PWA.
A while back the manifest.json orientation property was changed from portrait to any. This, however, makes Chrome for Android ignore the native Android orientation lock, which makes it quite difficult basically impossible to read posts with your phone sideways. In fact, the Chrome docs even say:
Use this selectively. Users prefer selecting the orientation.
This makes me think any isn’t really the default. Could the property orientation simply be omitted? The Web App of dev.to for example, works fine for me and doesn’t have it set in its manifest.
I’ve noticed that while orientation is set to any, the system “orientation lock” is ignored.
Seems like the desired settings would be “same as chrome” (portrait/landscape based on how your holding the device, unless you’re using the system wide orientation lock)… but not sure what that translates to in W3C speak…
It’s like an app, uninstall it (in the app list in the OS settings or dragging the icon to the corner in some launchers) and then navigate to Meta to install again.
Manifest properties auto-update in the background for stuff like site name, logo and colors, but I don’t think orientation is one of those that updates.