Postgres and Threads
Unsolved
Mobile and Embedded
-
Hi,
i want to open a database connection to another thread and in this connection instance i want to subscribed into notifications. The problem is that notify not work in this case. When i open database in the main thread everything works good. But is necessary to open the database connection to another thread in order to be able to receive even when the app is in the background or when the screen of the mobile is off.Any ideas?
-
-
@Gourmet your solution is not completed. I've read that i should create a service and then run the service in the background. https://doc.qt.io/qt-5.10/androidservices.html
But i don't know how to create a service in order to run it in the background. Any good tutorial will be great!
Thanks in advance! -