No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Lock orientation to portrait with Capacitor/Cordova

    Help
    2
    3
    539
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      XanCeegor last edited by XanCeegor

      How can I lock my app’s orientation to only be in portrait mode? I’m building an Android app using Capacitor/Cordova. Can someone perhaps link me to the documentation?
      Thanks!

      1 Reply Last reply Reply Quote 0
      • X
        XanCeegor last edited by

        Nevermind, I solved it. Was as easy as adding “<preference name=“Orientation” value=“portrait” />” to the Cordova config.xml file 🙂

        1 Reply Last reply Reply Quote 1
        • N
          numerouno last edited by

          Thank you! This worked for me.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post