Android APP - When connected it shows Blank Page

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.

Android SDK August 22, 2023

  1. I install APP
  2. I open it and accept the policies
  3. Enter the domain: demo
  4. Enter the realm: smartcity
  5. Blank screen

Is anyone experiencing the same error?

Thank you very much. Mariano.

Hi mbrizu74,

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.

Hi all!

Yes we just discovered the issue in the OR team as well.
We’re investigating and busy with working on a fix!

If you have any logs or errors to share please do!
That will help us get to the cause quicker :wink:

2 Likes

Hi Martin. I attach the debug of the app in Android Studio

2023-09-14 10:11:55.723   634-667   EGL_emulation           io.openremote.app                    D  app_time_stats: avg=17439.15ms min=29.60ms max=34848.70ms count=2
---------------------------- PROCESS ENDED (634) for package io.openremote.app ----------------------------
---------------------------- PROCESS STARTED (968) for package io.openremote.app ----------------------------
2023-09-14 10:12:21.283   968-968   ApplicationLoaders      io.openremote.app                    D  Returning zygote-cached class loader: /system_ext/framework/androidx.window.extensions.jar
2023-09-14 10:12:21.284   968-968   ApplicationLoaders      io.openremote.app                    D  Returning zygote-cached class loader: /system_ext/framework/androidx.window.sidecar.jar
2023-09-14 10:12:21.301   968-968   ziparchive              io.openremote.app                    W  Unable to open '/data/app/~~SGqjcDZHrBtyp7Vf7RBBEg==/io.openremote.app-uivs9KFpmRZjt4ZYht6ZtA==/base.dm': No such file or directory
2023-09-14 10:12:21.302   968-968   ziparchive              io.openremote.app                    W  Unable to open '/data/app/~~SGqjcDZHrBtyp7Vf7RBBEg==/io.openremote.app-uivs9KFpmRZjt4ZYht6ZtA==/base.dm': No such file or directory
2023-09-14 10:12:21.983   968-968   nativeloader            io.openremote.app                    D  Configuring clns-6 for other apk /data/app/~~SGqjcDZHrBtyp7Vf7RBBEg==/io.openremote.app-uivs9KFpmRZjt4ZYht6ZtA==/base.apk. target_sdk_version=33, uses_libraries=, library_path=/data/app/~~SGqjcDZHrBtyp7Vf7RBBEg==/io.openremote.app-uivs9KFpmRZjt4ZYht6ZtA==/lib/x86_64, permitted_path=/data:/mnt/expand:/data/user/0/io.openremote.app
2023-09-14 10:12:22.027   968-968   GraphicsEnvironment     io.openremote.app                    V  Currently set values for:
2023-09-14 10:12:22.028   968-968   GraphicsEnvironment     io.openremote.app                    V    angle_gl_driver_selection_pkgs=[]
2023-09-14 10:12:22.029   968-968   GraphicsEnvironment     io.openremote.app                    V    angle_gl_driver_selection_values=[]
2023-09-14 10:12:22.034   968-968   GraphicsEnvironment     io.openremote.app                    V  ANGLE GameManagerService for io.openremote.app: false
2023-09-14 10:12:22.035   968-968   GraphicsEnvironment     io.openremote.app                    V  io.openremote.app is not listed in per-application setting
2023-09-14 10:12:22.037   968-968   GraphicsEnvironment     io.openremote.app                    V  Neither updatable production driver nor prerelease driver is supported.
2023-09-14 10:12:22.094   968-968   Compatibil...geReporter io.openremote.app                    D  Compat change id reported: 183155436; UID 10187; state: ENABLED
2023-09-14 10:12:22.157   968-968   FirebaseApp             io.openremote.app                    I  Device unlocked: initializing all Firebase APIs for app [DEFAULT]
2023-09-14 10:12:22.251   968-968   FirebaseInitProvider    io.openremote.app                    I  FirebaseApp initialization successful
2023-09-14 10:12:22.339   968-998   libEGL                  io.openremote.app                    D  loaded /vendor/lib64/egl/libEGL_emulation.so
2023-09-14 10:12:22.353   968-998   libEGL                  io.openremote.app                    D  loaded /vendor/lib64/egl/libGLESv1_CM_emulation.so
2023-09-14 10:12:22.381   968-998   libEGL                  io.openremote.app                    D  loaded /vendor/lib64/egl/libGLESv2_emulation.so
2023-09-14 10:12:24.049   968-968   WebViewFactory          io.openremote.app                    I  Loading com.google.android.webview version 113.0.5672.136 (code 567263637)
2023-09-14 10:12:24.068   968-968   ziparchive              io.openremote.app                    W  Unable to open '/data/app/~~CKE9PDql0mrmeikslQ4acg==/com.google.android.trichromelibrary_567263637-FRSgKZQMnskogm_4cS7GIw==/TrichromeLibrary.dm': No such file or directory
2023-09-14 10:12:24.068   968-968   ziparchive              io.openremote.app                    W  Unable to open '/data/app/~~CKE9PDql0mrmeikslQ4acg==/com.google.android.trichromelibrary_567263637-FRSgKZQMnskogm_4cS7GIw==/TrichromeLibrary.dm': No such file or directory
2023-09-14 10:12:24.070   968-968   .openremote.app         io.openremote.app                    W  Entry not found
2023-09-14 10:12:24.080   968-968   nativeloader            io.openremote.app                    D  Configuring clns-7 for other apk /data/app/~~CKE9PDql0mrmeikslQ4acg==/com.google.android.trichromelibrary_567263637-FRSgKZQMnskogm_4cS7GIw==/TrichromeLibrary.apk. target_sdk_version=34, uses_libraries=ALL, library_path=/data/app/~~x3UR4B5GGYT8Ri3UI5zfbA==/com.google.android.webview-sFFGjwuu53GN4iFcShN1Qw==/lib/x86_64:/data/app/~~x3UR4B5GGYT8Ri3UI5zfbA==/com.google.android.webview-sFFGjwuu53GN4iFcShN1Qw==/WebViewGoogle.apk!/lib/x86_64:/data/app/~~CKE9PDql0mrmeikslQ4acg==/com.google.android.trichromelibrary_567263637-FRSgKZQMnskogm_4cS7GIw==/TrichromeLibrary.apk!/lib/x86_64, permitted_path=/data:/mnt/expand
2023-09-14 10:12:24.103   968-968   nativeloader            io.openremote.app                    D  Configuring clns-8 for other apk /data/app/~~x3UR4B5GGYT8Ri3UI5zfbA==/com.google.android.webview-sFFGjwuu53GN4iFcShN1Qw==/WebViewGoogle.apk. target_sdk_version=34, uses_libraries=, library_path=/data/app/~~x3UR4B5GGYT8Ri3UI5zfbA==/com.google.android.webview-sFFGjwuu53GN4iFcShN1Qw==/lib/x86_64:/data/app/~~x3UR4B5GGYT8Ri3UI5zfbA==/com.google.android.webview-sFFGjwuu53GN4iFcShN1Qw==/WebViewGoogle.apk!/lib/x86_64:/data/app/~~CKE9PDql0mrmeikslQ4acg==/com.google.android.trichromelibrary_567263637-FRSgKZQMnskogm_4cS7GIw==/TrichromeLibrary.apk!/lib/x86_64, permitted_path=/data:/mnt/expand
2023-09-14 10:12:24.264   968-968   .openremote.app         io.openremote.app                    W  Accessing hidden method Landroid/os/Trace;->isTagEnabled(J)Z (unsupported, reflection, allowed)
2023-09-14 10:12:24.265   968-968   .openremote.app         io.openremote.app                    W  Accessing hidden method Landroid/os/Trace;->traceBegin(JLjava/lang/String;)V (unsupported, reflection, allowed)
2023-09-14 10:12:24.265   968-968   .openremote.app         io.openremote.app                    W  Accessing hidden method Landroid/os/Trace;->traceEnd(J)V (unsupported, reflection, allowed)
2023-09-14 10:12:24.265   968-968   .openremote.app         io.openremote.app                    W  Accessing hidden method Landroid/os/Trace;->asyncTraceBegin(JLjava/lang/String;I)V (unsupported, reflection, allowed)
2023-09-14 10:12:24.266   968-968   .openremote.app         io.openremote.app                    W  Accessing hidden method Landroid/os/Trace;->asyncTraceEnd(JLjava/lang/String;I)V (unsupported, reflection, allowed)
2023-09-14 10:12:24.284   968-968   cr_WVCFactoryProvider   io.openremote.app                    I  Loaded version=113.0.5672.136 minSdkVersion=29 isBundle=false multiprocess=true packageId=2
2023-09-14 10:12:24.316   968-1007  cr_VariationsUtils      io.openremote.app                    I  Failed reading seed file "/data/user/0/io.openremote.app/app_webview/variations_seed_new"
2023-09-14 10:12:24.317   968-1007  cr_VariationsUtils      io.openremote.app                    I  Failed reading seed file "/data/user/0/io.openremote.app/app_webview/variations_seed"
2023-09-14 10:12:24.342   968-968   cr_LibraryLoader        io.openremote.app                    I  Successfully loaded native library
2023-09-14 10:12:24.345   968-968   cr_CachingUmaRecorder   io.openremote.app                    I  Flushed 8 samples from 8 histograms.
2023-09-14 10:12:24.755   968-968   Compatibil...geReporter io.openremote.app                    D  Compat change id reported: 214741472; UID 10187; state: ENABLED
2023-09-14 10:12:24.761   968-968   Compatibil...geReporter io.openremote.app                    D  Compat change id reported: 171228096; UID 10187; state: ENABLED
2023-09-14 10:12:24.858   968-968   AutofillManager         io.openremote.app                    D  Fill dialog is enabled:false, hints=[password, passwordAuto, creditCardNumber, creditCardSecurityCode, creditCardExpirationDate]
2023-09-14 10:12:24.919   968-968   OrMainActivity          io.openremote.app                    I  Enabling remote debugging
2023-09-14 10:12:24.943   968-968   Compatibil...geReporter io.openremote.app                    D  Compat change id reported: 237531167; UID 10187; state: DISABLED
2023-09-14 10:12:24.947   968-968   OpenGLRenderer          io.openremote.app                    W  Unknown dataspace 0
2023-09-14 10:12:25.006   968-968   OrMainActivity          io.openremote.app                    I  Connectivity changed: true
2023-09-14 10:12:25.011   968-968   Compatibil...geReporter io.openremote.app                    D  Compat change id reported: 193247900; UID 10187; state: ENABLED
2023-09-14 10:12:25.126   968-996   OpenGLRenderer          io.openremote.app                    W  Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
2023-09-14 10:12:25.126   968-996   OpenGLRenderer          io.openremote.app                    W  Failed to initialize 101010-2 format, error = EGL_SUCCESS
2023-09-14 10:12:25.155   968-996   Gralloc4                io.openremote.app                    I  mapper 4.x is not supported
2023-09-14 10:12:25.221   968-996   OpenGLRenderer          io.openremote.app                    E  Unable to match the desired swap behavior.
2023-09-14 10:12:26.619   968-996   EGL_emulation           io.openremote.app                    D  app_time_stats: avg=425.84ms min=29.26ms max=1095.42ms count=3

Hi guys!

We released a new version of the OpenRemote app on the Google Play store. :wink:
The issue should be solved. Can you check?

Hi Martin

It works perfect. Thank you so much. Notify when the Github repository is updated.

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.

1 Like

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…

Thanks in Advance

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 :joy:

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…

Ya I considered that a simple webview would have done it, just lazy TBH! xD

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.