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
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