#1 2016-07-27 18:16:52

bwheatley
Member
Registered: 2016-07-27
Posts: 2

mORMot server on Android for local consumption on the same device?

Hello,

We are building an application with Delphi FireMonkey that will need to be able to run on Windows and Android tablets. We are creating the UI in HTML / CSS / JavaScript in part for cross platform and in part because we have more web developers on staff. The Delphi application will essentially have a TWebBrowser on the main form and the web documents being served up by a web server built into the Delphi application. This application is for use by our company's service technicians who will be out in the field often without Internet access so we cannot serve up the web pages over the Internet. The database and the TCP/IP communications with the electronic devices that we sell and service will be handled by the Delphi back end.

Would it be possible to embed a mORMot server into the Delphi FireMonkey application and pull data from it even on the Android device? Or perhaps have the mORMot server as a REST service served up by an embedded web server?

Thank you,
Brian Wheatley

Offline

#2 2016-07-27 21:22:42

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,225
Website

Re: mORMot server on Android for local consumption on the same device?

Only cross platform code runs on Delphi nextgen compiler for Android .
So you can't create a mORMot server on Android with Delphi.

But you can with FPC.
See http://blog.synopse.info/post/2015/03/0 … on-Android

Offline

#3 2016-07-29 08:44:26

AOG
Member
Registered: 2014-02-24
Posts: 490

Re: mORMot server on Android for local consumption on the same device?

You could investigate two other possibilities, also to be explored with the help of FPC.
1) make a library (.so) with FPC and export some (ORM) methods to be used directly by you Delphi client.
2) make a localhost server (.so library) with FPC and connect with localhost with your Delphi client (exported methods: StartServer, StopServer).
You have to include this library into your Delphi app.

Offline

#4 2016-07-30 13:54:32

bwheatley
Member
Registered: 2016-07-27
Posts: 2

Re: mORMot server on Android for local consumption on the same device?

You guys are awesome! Thank you!!

Offline

Board footer

Powered by FluxBB