Manifest.json has orientation set to portrait, Users cannot turn device to landscape

When a User has installed the android web app via the “Add to Homescreen” feature the device is locked in the portrait orientation. Especially on a tablet, this is annyoing.

The manifest.json route is configured to point here: app/controllers/metadata_controller.rb, where the manifest.json rendered.

I logged into the docker container, removed the orientation: portrait line, but the changes are not taking; the delivered manifest.json still looks the same. I tried rake tmp:clear && rake tmp:create and also rake assets:clobber assets:precompile without succces. As you might have guessed, I am a ruby/rails novice. Does anyone know what to do, so that the changes takes effect?

I like the feature quite a lot but maybe the orientation could be moved to SiteSetting.web-app-orientation or something similar?

1 Like

Direct Link to github:
https://github.com/discourse/discourse/blob/master/app/controllers/metadata_controller.rb

Actually I don’t see why we are locking it to portrait.

https://github.com/discourse/discourse/commit/d6bf5b0e78364c5022e178d95da23f636e03a91e

5 Likes