BitCannaGlobal / WeedMobile

5 stars 1 forks source link

Always force app in portrait mode #60

Closed TJ-BitCanna closed 8 months ago

TJ-BitCanna commented 8 months ago

As mentioned as preferred solution in #56 the app must always be used in portrait mode to avoid a lot of scrolling (for example on the splash screen or on the Settings page). This has not been implemented yet.

RaulBernal commented 8 months ago

As mentioned as preferred solution in #56 the app must always be used in portrait mode to avoid a lot of scrolling (for example on the splash screen or on the Settings page). This has not been implemented yet.

The only inconvenient I feel is that you can't use a physical keyboard attached to a tablet because it usually match in landscape position.

RaulBernal commented 8 months ago

So maybe you can add a [ x ] check in config page to force/un-force it (could be a solution)

atmoner commented 8 months ago

By reading the capacitore doc, I configured iOS and Android to only keep portrait mode https://capacitorjs.com/docs/guides/screen-orientation

Fixed here: https://github.com/BitCannaGlobal/WeedMobile/commit/f21f0c9e4344df5dcbd21c2ced616b55c2faae2e

atmoner commented 8 months ago

Here is my first return: 1/ Android, portrait mode is fixed 2/ On Iphone, portrait mode is fixed 3/ On iPad, I have to leave the choice to the user, ios store does not give me the choice

image

TJ-BitCanna commented 8 months ago

Works (only tested on Android phone :) )