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

    App works on desktop but fails on phone

    Scheduled Pinned Locked Moved Solved App Development
    4 Posts 2 Posters 742 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.
      • H Offline
        Homer
        last edited by

        Hi, I am a bloody beginner in UT Qml app development and I'm trying to get my app working on the phone. AFAIK requires no privileges since it only uses local sqlite database. Th db has only one table and crearing the db on app start and making entries as well as displaying them in a list works on desktop. When I run it on the phone I see no entries.
        At this stage I don' t know if there is an issue with the database, etc. Or if simply the list is nit visible/outside the visible window space etc.
        Does anyone have recommendations how to debug the app running on the phone?
        Thanks.

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

          @homer Hello. Maybe you are hardcoding the path to the db?
          Maybe this helps: https://docs.ubports.com/en/latest/appdev/guides/writeable-dirs.html

          Another planet, another time, another universe!

          H 1 Reply Last reply Reply Quote 0
          • H Offline
            Homer @CiberSheep
            last edited by

            @cibersheep thanks a lot for that hint. It was not the database path, but the name. I had used some template code with whitespaces ("Sample database", ....) after removing the whitespaces it works now on the phone, too

            H 1 Reply Last reply Reply Quote 1
            • H Offline
              Homer @Homer
              last edited by

              @homer said in App works on desktop but fails on phone:

              @cibersheep thanks a lot for that hint. It was not the database path, but the name. I had used some template code with whitespaces ("Sample database", ....) after removing the whitespaces it works now on the phone, too

              Just confusing that the behaviour is different between linux laptop and ut phone

              1 Reply Last reply Reply Quote 0

              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