Cordova - How to disable upside-down orientation for ios?

In my application (ionic + cordova) I set the orientation for the portrait, but when I open xcode for assembly, the updside down option is enabled. how can i disconnect upside down in my config.xml?

my config.xml

<preference name="orientation" value="portrait" />

Thank you

+4
source share
2 answers

Try changing your config.xml to: <preference name="orientation" value="default" />

Then at the platform level for iOS, change your preference value to β€œportrait” with: <preference name="orientation" value="default" />

Config Ref

Default: default

Allowed values: default, landscape, portrait.

This allows you to block orientation and prevent the interface from rotating in response to changes in orientation.

. , / , . iOS, , , "".

, . , !

+1

iOS "-" .

. ()

0

Source: https://habr.com/ru/post/1653043/


All Articles