UBports Robot Logo

    UBports Forum

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

    Solved App works on desktop but fails on phone

    App Development
    2
    4
    265
    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
      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.

      CiberSheep 1 Reply Last reply Reply Quote 0
      • CiberSheep
        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
          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
            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
            • First post
              Last post