UBports Robot Logo UBports Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Questions regarding map & location

    Scheduled Pinned Locked Moved App Development
    4 Posts 2 Posters 841 Views 2 Watching
    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.
      • s710S Offline
        s710
        last edited by s710

        I have just started work on my first app, and the main window basically just contains a fullscreen QML Map. When I run the app via clickable desktop, the map tiles are rendered and the map is functional.

        When I run it on my volla phone via clickable --ssh x.x.x.x ... the map however is not displayed, and instead I get a blank screen.

        Do I specify somewhere additional dependencies or something?

        CiberSheepC 1 Reply Last reply Reply Quote 0
        • CiberSheepC Offline
          CiberSheep @s710
          last edited by

          @s710 Hello.
          You might need add correspondant apparmor permissions:

          https://docs.ubports.com/en/latest/appdev/platform/apparmor.html

          If you are reading the location probably location 🙂 but if you are rendering maps in a webview, or need internet access, need networking and webview.

          You might see the errors in the log clickable --ssh xxxx logs

          Another planet, another time, another universe!

          1 Reply Last reply Reply Quote 1
          • s710S Offline
            s710
            last edited by

            Thanks, will check it out.

            1 Reply Last reply Reply Quote 0
            • s710S Offline
              s710
              last edited by

              I added:

              {
                  "policy_groups": ["location", "networking"],
                  "policy_version": 16.04
              }
              

              And now the map works as expected. Thanks again.

              1 Reply Last reply Reply Quote 2

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post