Yes, your Mobile app and Objo Web application can share the same server, PostgreSQL database and images.
Mobile projects don’t currently include PostgreSQLDatabase. I’d put a small HTTPS API in your Web application, with the database connection handled on the server.
The arrangement would be:
- Web application: Add a
WebRequestHandler. Its endpoints query PostgreSQL and return the requested records as JSON.
- Mobile application: Use
URLConnection.SendAsync to call those endpoints and read the JSON.
- Images: Return an image URL with each record. The Mobile app downloads the image using
URLConnection, creates a picture with Picture.FromBytes(response.Content), and assigns it to an ImageViewer.
The images can be hosted on the same server as your Web application, as long as they’re available through HTTPS URLs.
For your collection app, I’d start with a search endpoint that returns matching items and thumbnails, and a detail endpoint that returns one item’s populated fields and main image URL. Both the Web and Mobile apps could then use the same collection.
Keep the PostgreSQL credentials on the server. If collections are private, the API should also authenticate users and check which records and images they can access.
You would need to write the endpoints and the Mobile code that calls them. For offline use, you could later add a local SQLite copy and downloaded images, with your app handling updates when it reconnects.