Hi,
regarding your custom smartphone app ‘ourgrid’, I see that the code must be in ui/app/ourgrid but beyond that I must admit I have no experience in this. I also haven’t been able to see any more information on docs.openremote.io, so maybe you can give me some hints so I can do some research. I see that in the app/<custom_app> folder most of files are typescript. I have two doubts to start with, are these *.ts files automatically generated by OR or have they been hand-coded? And secondly, once you have the app folder, do you have to build the app with android studio (if it’s for android) for example?
Well, once this has been answered, I have a third question: is it possible to modify the contents of the custom_app folder slightly and create our own app?
Any help would be appreciated. Thanks
Hi!
Let me explain;
I see that in the app/<custom_app> folder most of files are typescript. I have two doubts to start with, are these *.ts files automatically generated by OR or have they been hand-coded?
They are hand coded custom apps / websites. Either built by us, or by anyone else.
In custom projects, the ui/app/<custom_app>
folder contains the code of a web app.
We ourselves built them with the Lit library, and reusing components from NPM here.
.
And secondly, once you have the app folder, do you have to build the app with android studio (if it’s for android) for example?
The /ui/app/<custom_app>
contains web code, so we basically deploy a website.
For example, after deploying, you can view your app through the browser at;
https://myopenremotedeployment.com/<custom app name>/
But how about the Android / iOS apps?
Well, they are basically browsers viewing the custom app website.
So when opening the app, you navigate to https://.../<custom app name>
, and voila!
We call these Android / iOS apps consoles. More technical info can be found here.
.
is it possible to modify the contents of the custom_app folder slightly and create our own app?
Yes. You can create new apps, or modify existing ones.
It’s better to copy-paste the example in the custom-project template, and create a new folder.
For custom Android / iOS apps, you can do anything really.
We provide SDKs for Android and iOS, and have technical info on them here
But we don’t provide any examples in our documentation, nor in the template. (In-house only)
But feel free to experiment or try something yourself