App works on desktop but fails on phone
-
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. -
@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 -
@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
-
@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