Good afternoon everyone, I don’t know if it only happens to me but this is happening to me:
This week I started working with the OR sdk in Android Studio. I have the problem that I cannot connect to either the OR Demo (Smartcity and Manufacturer) or the custom implementation that I have. I tried installing and uninstalling from my Samsung A50 android phone and from Andoird Studio and I have the same error.
Yes, I came to this forum to look for answers. I face the same issue.
You can reproduce the issue with the Google Play app and the demo on the openremote website. Follow steps 1 to 4, but make sure in step 3 you add https://demo.openremote.app
I get in step 5 the same blank white screen even if I compiled the app myself.
A second issue, maybe entirely unrelated, is the stock app in the openremote repository on location ~/openremote/console/android/GenericApp/ does not compile. I will post the reproduction of this issue later and the “potential” fix.
Is the updated version of android console mobile app now available in the repository? All I can find in wiki is inactive links for how to develop and deploy the android and IOS apps…
Should be, yes. I’m not sure what you are looking for, but the iOS / android code should be updated in the /console directory of the OpenRemote repo. The app on the stores is only updated once in a while.
Perfect, it’s just the write-up is lacking a bit or feels outdated, so had to make sure, thanks.
I’m white labeling the mobile app and testing it out now. What scared me was the archived android repo etc…
So after hours & hours wasted trying to figure things out I still can’t get to the point where I can compile the android console, I don’t use Kotlin btw I only have dabbled with flutter but from what I see, is that really supposed to compile as a full app? to me, it looks like you need to still do more to get it to compile.
If anyone is managing to compile it, please share what steps they took, at least how to get started in the right direction…
May I ask why you’re trying to recompile the Android app at all?
As in, the app is meant for generic use, so it is ‘plug and play’ for users to use apps on mobile.
It’s not really meant for forking / customization by other users. If you would,
basically any user can login with any project on your app.
I’m not too familiar with compiling the consoles, especially since I haven’t touched them in a while.
You can look at the gradle scripts in our GitHub repository if you feel the need to.
But I think you’re better off looking for a custom solution.
.
To explain what the mobile consoles are technically;
Both the iOS and Android consoles mostly exist out of their respective WebView components,
and communicate native functionality to our web apps by bridging them (we named it a ConsoleProvider) using several well known libraries. As explained on our GitHub wiki below.
So, nothing special in terms of functionality. This communication is mostly used for features like
QR scanners, bluetooth communication, native storage etc.
But these features aren’t ‘required’ for using the web apps or anything.
.
But I’m assuming here you have a custom project you are working on,
so isn’t it easier to build a simple Flutter app that uses a WebView to communicate?
Just trying to come up with ideas here
Also feel free to open up a new topic to continue this discussion,
so it won’t be flooded with replies here haha
No worries got it working, for anyone else facing issues first make sure you place project in its own folder genericapp and not within the openremote repo, also make sure you don’t upgrade Gradle for some reason with me it just broke and wouldn’t compile or build, last make sure to use JVM 17 setup for project after that all went smooth…