- QGIS Desktop 3.6.2.
- PostgreSQL/postGIS: PostgreSQL 10.5 on Windows x86-64
- Server hosting PostgreSQL: Windows Server 2012 R2
- Android on Nokia 6.1
- QField App
- QGIS Plugins: QFieldSync
I'm trying to save points from a QField project to my PostgreSQL Database.
However, as of now I have only been able to obtain a geopackage format of my points (offline and online). In several posts I found though that it would be possible to have the points transferred into the PostgreSQL directly from the device (in the online mode of QField).
I prepared a QGIS Project and loaded a PostgreSQL table. I set this up as a portable project in Set-tings (set paths to "relative"), packaged in the QFieldSync and transferred to the "An-droid/datach.opengis.qfield/files" folder on my mobile device.
The PostGIS table was added to the project as a new PostGIS layer in the Data Source Manager Settings: (SSL mode "prefer"/ "Allow saving/loading QGIS projects in the database"/ password and username saved).
On my device (online and offline) points were added to the .qgs project. The points were transferred back to my desktop by connecting the phone to the computer and using the QFieldSync plugin to synchronize the folder (ideally I'd want the points to be synchronized without connecting the phone by cable).
What I suspect is that the 'packaging' step in QFieldSync creates the gpkg file to make the Post-greSQL table editable in QField. What settings in QFieldSync I should use for this or am I missing a step?