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

    [Solved] Black bars above and below Cordova app on devices with tall screens

    Help
    2
    3
    1022
    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.
    • G
      greene48 last edited by greene48

      I’ve packaged my app using Cordova, and it mostly works great. However, since my device is a galaxy s8 it has an unusual aspect ratio (18.5:9), which means I’ve got black bars above and below my app. Is there a way to make the app scale to fill the screen? I know most Android apps are able to scale up to fill that extra screen height, but I’m not sure how to do it in Cordova. The other issue I’m having is that Cordova thinks my app is a game for some reason, as you can see it gives Samsung Game Tools in the bottom left and right corners. These only show up on games. Is there a setting somewhere to fix these issues?

      alt text

      1 Reply Last reply Reply Quote 0
      • benoitranque
        benoitranque last edited by

        This question may find better answers in the cordova forum 🙂

        1 Reply Last reply Reply Quote 0
        • G
          greene48 last edited by

          yup, I realized that after.

          I actually did figure it out, if anyone is interested. YOu need to add this to your config.xml file:

          <config-file parent="/manifest/application" target="AndroidManifest.xml">
              <meta-data android:name="android.max_aspect" android:value="2.1" />
          </config-file>
          1 Reply Last reply Reply Quote 2
          • First post
            Last post