# Manifest orientation property

**URL:** https://meta.discourse.org/t/manifest-orientation-property/94900
**Category:** Feature
**Created:** [August 16, 2018, 5:49pm UTC](https://meta.discourse.org/t/manifest-orientation-property/94900 "2018-08-16T17:49:19Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![larsgw](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/larsgw/32/108999_2.png) [@larsgw](https://meta.discourse.org/u/larsgw)
#### Post date: [August 16, 2018, 5:49pm UTC](https://meta.discourse.org/t/manifest-orientation-property/94900/1 "2018-08-16T17:49:19Z")

</div>

[A while back](https://meta.discourse.org/t/manifest-json-has-orientation-set-to-portrait-users-cannot-turn-device-to-landscape/55579) 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](https://developers.google.com/web/fundamentals/web-app-manifest/#orientation):

> 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.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [August 16, 2018, 11:56pm UTC](https://meta.discourse.org/t/manifest-orientation-property/94900/2 "2018-08-16T23:56:30Z")

</div>

What do you think @falco?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [August 17, 2018, 12:10am UTC](https://meta.discourse.org/t/manifest-orientation-property/94900/3 "2018-08-17T00:10:05Z")

</div>

At first it was `portrait` and people asked for `any` in the link OP provided.

Then we got [a PR](https://github.com/discourse/discourse/pull/4703) changing to `natural`.

Then we [got complaints](https://forum.quartertothree.com/t/suggestions-for-future-improvements-to-our-forum-software/129744/469) and changed back to `any`.

🤷‍♂️

> [@larsgw](#):
>
> This makes me think `any` isn’t really the default. Could the property `orientation` simply be omitted?

We can certainly do this. Let me research a bit and get back to you.

---

<div class="post-metadata">

### Author: ![ryanerwin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ryanerwin/32/94589_2.png) [@ryanerwin](https://meta.discourse.org/u/ryanerwin)
#### Post date: [August 17, 2018, 4:26am UTC](https://meta.discourse.org/t/manifest-orientation-property/94900/5 "2018-08-17T04:26:01Z")

</div>

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…

> **[Screen Orientation](https://w3c.github.io/screen-orientation/#idl-def-OrientationLockType)**

---

<div class="post-metadata">

### Author: ![abass](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abass/32/113486_2.png) [@abass](https://meta.discourse.org/u/abass)
#### Post date: [October 12, 2018, 11:26pm UTC](https://meta.discourse.org/t/manifest-orientation-property/94900/6 "2018-10-12T23:26:08Z")

</div>

> [@ryanerwin](#):
>
> I’ve noticed that while orientation is set to `any` , the system “orientation lock” is ignored.

Same here, have been discussing it in this thread:

> [@Android Auto-Rotate Disabled Not Respected with Discourse PWA](https://meta.discourse.org/t/android-auto-rotate-disabled-not-respected-with-discourse-pwa/99396):
>
> This only happens with Discourse after you “add to homepage” (creating a Progressive Web App), once added, they don’t respect Auto-Rotate settings and keep rotating even when the setting is disabled on Android. It’s incredibly frustrating since I always have “auto-rotate” turned off and it’s constantly switching between landscape and portrait view, especially when laying down on the couch or in bed on Discourse communities (Asana, Airtable, this community, etc.). Edit: Video showing issue comp…

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 26, 2018, 4:50pm UTC](https://meta.discourse.org/t/manifest-orientation-property/94900/7 "2018-10-26T16:50:21Z")

</div>

Okay let’s try this:

[https://github.com/discourse/discourse/commit/84f858fc23c19484c588b6d305b27cf805c2c342](https://github.com/discourse/discourse/commit/84f858fc23c19484c588b6d305b27cf805c2c342)

---

<div class="post-metadata">

### Author: ![abass](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/abass/32/113486_2.png) [@abass](https://meta.discourse.org/u/abass)
#### Post date: [October 26, 2018, 6:13pm UTC](https://meta.discourse.org/t/manifest-orientation-property/94900/8 "2018-10-26T18:13:31Z")

</div>

Looks great! This should remedy these issues - thank you so much for looking into this! 🙂

---

<div class="post-metadata">

### Author: ![danekhollas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/danekhollas/32/79637_2.png) [@danekhollas](https://meta.discourse.org/u/danekhollas)
#### Post date: [October 29, 2018, 12:26pm UTC](https://meta.discourse.org/t/manifest-orientation-property/94900/9 "2018-10-29T12:26:25Z")

</div>

Hmm, do I need to re-install the PWA for this to take an effect? I was testing it here on meta and still have issues, even after restarting my phone.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 29, 2018, 1:22pm UTC](https://meta.discourse.org/t/manifest-orientation-property/94900/10 "2018-10-29T13:22:40Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![larsgw](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/larsgw/32/108999_2.png) [@larsgw](https://meta.discourse.org/u/larsgw)
#### Post date: [October 29, 2018, 2:37pm UTC](https://meta.discourse.org/t/manifest-orientation-property/94900/11 "2018-10-29T14:37:20Z")

</div>

Thanks for the fix! I don’t think I can mark it as a solution, so a like and a reply will have to do.

I didn’t have to reinstall the PWA, but that may just be a coincidence.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 29, 2018, 2:43pm UTC](https://meta.discourse.org/t/manifest-orientation-property/94900/12 "2018-10-29T14:43:52Z")

</div>

That good to know, thanks for the info. Those sneaky webapk updates are looking good.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [March 13, 2019, 4:19pm UTC](https://meta.discourse.org/t/manifest-orientation-property/94900/13 "2019-03-13T16:19:42Z")

</div>


