fl0w
(Flow)
February 17, 2024, 5:21pm
1
I can’t get OpenHAB Android 3.9.0 nor 3.10.0 to show the Main UI in remote mode (using OpenHAB 4.1.1).
While it shows the Main UI in local mode (note the Wifi symbol in the upper right corner):
The same thing looks empty once I turn of Wifi and go into the remote mode:
As far as I can tell, OpenHAB Android is able to retrieve and use the sitemap. It’s “just” the Main UI that does not show.
The Android log of the habdroid app also does not look suspicious (at least, to me):
2024-02-17 18:18:04.688 6743-6743 PageConnec...erFragment org.openhab.habdroid D updateActiveConnections: URL list [https://myopenhab.org/rest/sitemaps/uicomponents_Sitemap/uicomponents_Sitemap], connection org.openhab.habdroid.core.connection.DefaultConnection@628eb6
2024-02-17 18:18:04.694 6743-6743 ServerConfiguration org.openhab.habdroid D load: ServerConfiguration(id=1, name=openHAB, localPath=ServerPath(url=https://192.168.188.43:8443/, userName=<redacted>, password=<redacted>), remotePath=ServerPath(url=https://myopenhab.org/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=DefaultSitemap(name=uicomponents_Sitemap, label=Sitemap), wifiSsids=[MyWifi], restrictToWifiSsids=true, frontailUrl=null)
2024-02-17 18:18:04.710 6743-6743 WidgetListFragment org.openhab.habdroid D onPause() https://myopenhab.org/rest/sitemaps/uicomponents_Sitemap/uicomponents_Sitemap
2024-02-17 18:18:04.767 1996-5678 ConnectivityService system_server D requestNetwork for uid/pid:10485/6743 activeRequest: null callbackRequest: 11579 [NetworkRequest [ REQUEST id=11580, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10485 RequestorUid: 10485 RequestorPkg: org.openhab.habdroid UnderlyingNetworks: Null] ]] callback flags: 0 order: 2147483647
2024-02-17 18:18:04.773 1996-2794 WifiNetworkFactory system_server D got request NetworkRequest [ REQUEST id=11580, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10485 RequestorUid: 10485 RequestorPkg: org.openhab.habdroid UnderlyingNetworks: Null] ]
2024-02-17 18:18:04.774 1996-2794 UntrustedW...orkFactory system_server D got request NetworkRequest [ REQUEST id=11580, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10485 RequestorUid: 10485 RequestorPkg: org.openhab.habdroid UnderlyingNetworks: Null] ]
2024-02-17 18:18:04.774 1996-2794 OemPaidWif...orkFactory system_server D got request NetworkRequest [ REQUEST id=11580, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10485 RequestorUid: 10485 RequestorPkg: org.openhab.habdroid UnderlyingNetworks: Null] ]
2024-02-17 18:18:04.774 1996-2794 MultiInter...orkFactory system_server D got request NetworkRequest [ REQUEST id=11580, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10485 RequestorUid: 10485 RequestorPkg: org.openhab.habdroid UnderlyingNetworks: Null] ]
2024-02-17 18:18:04.802 6743-6743 AbstractWebViewFragment org.openhab.habdroid D Load default website
2024-02-17 18:18:04.862 1996-2278 ActivityManager system_server I Start proc 18445:com.google.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:5/u0i414 for {org.openhab.habdroid/org.chromium.content.app.SandboxedProcessService0:5}
2024-02-17 18:18:04.873 6743-6743 MainActivity org.openhab.habdroid D onCreateOptionsMenu()
2024-02-17 18:18:04.874 6743-6743 MainActivity org.openhab.habdroid D onPrepareOptionsMenu()
2024-02-17 18:18:04.913 6743-6743 AbstractWebViewFragment org.openhab.habdroid D progressCallback: progress = 10
2024-02-17 18:18:05.107 1996-2052 CoreBackPreview system_server D Window{f002b3b u0 org.openhab.habdroid/org.openhab.habdroid.ui.MainActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@24c606d, mPriority=0}
2024-02-17 18:18:05.242 6743-6743 AbstractWebViewFragment org.openhab.habdroid D progressCallback: progress = 70
2024-02-17 18:18:05.262 6743-6743 AbstractWebViewFragment org.openhab.habdroid D progressCallback: progress = 100
2024-02-17 18:18:05.262 6743-6743 AbstractWebViewFragment org.openhab.habdroid D progressCallback: progress = 100
I am able to remotely access the Main UI via myopenhab.org , fwiw.
Is this a known issue? How can I fix it?
sihui
(SiHui)
February 17, 2024, 6:04pm
2
fl0w:
How can I fix it?
Some users were able to fix it via a workaround:
Go into OH Settings and change the Regional Settings Language to nothing:
[image]
Then save.
Clear the Android App Cache
Settings, Apps, openHAB, Storage, Clear Cache and Clear Data
Try again.
I also had to “Reload App” under App Help & About
fl0w
(Flow)
February 17, 2024, 6:09pm
3
Thanks, but note that my Sitemap works fine, even remote. It is the Main UI that does not show. The thread you referenced seems to deal only about a non-functional sitemap. Or maybe I am missing something?
sihui
(SiHui)
February 17, 2024, 6:17pm
4
Why not just trying it out.
fl0w
(Flow)
February 17, 2024, 7:12pm
5
Tried it, and unfortunately the Main UI is still empty.
fl0w
(Flow)
February 21, 2024, 7:51am
6
FWIW, I’ve reported this at
opened 07:51AM - 21 Feb 24 UTC
bug
I can't get OpenHAB Android 3.9.0 nor 3.10.0 to show the Main UI in remote mode … (using OpenHAB 4.1.1).
While it shows the Main UI in local mode (note the Wifi symbol in the upper right corner):

The same thing looks empty once I turn of Wifi and go into the remote mode:

As far as I can tell, OpenHAB Android is able to retrieve and use the sitemap. It's "just" the Main UI that does not show.
The Android log of the habdroid app also does not look suspicious (at least, to me):
```
2024-02-17 18:18:04.688 6743-6743 PageConnec...erFragment org.openhab.habdroid D updateActiveConnections: URL list [https://myopenhab.org/rest/sitemaps/uicomponents_Sitemap/uicomponents_Sitemap], connection org.openhab.habdroid.core.connection.DefaultConnection@628eb6
2024-02-17 18:18:04.694 6743-6743 ServerConfiguration org.openhab.habdroid D load: ServerConfiguration(id=1, name=openHAB, localPath=ServerPath(url=https://192.168.188.43:8443/, userName=<redacted>, password=<redacted>), remotePath=ServerPath(url=https://myopenhab.org/, userName=<redacted>, password=<redacted>), sslClientCert=null, defaultSitemap=DefaultSitemap(name=uicomponents_Sitemap, label=Sitemap), wifiSsids=[MyWifi], restrictToWifiSsids=true, frontailUrl=null)
2024-02-17 18:18:04.710 6743-6743 WidgetListFragment org.openhab.habdroid D onPause() https://myopenhab.org/rest/sitemaps/uicomponents_Sitemap/uicomponents_Sitemap
2024-02-17 18:18:04.767 1996-5678 ConnectivityService system_server D requestNetwork for uid/pid:10485/6743 activeRequest: null callbackRequest: 11579 [NetworkRequest [ REQUEST id=11580, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10485 RequestorUid: 10485 RequestorPkg: org.openhab.habdroid UnderlyingNetworks: Null] ]] callback flags: 0 order: 2147483647
2024-02-17 18:18:04.773 1996-2794 WifiNetworkFactory system_server D got request NetworkRequest [ REQUEST id=11580, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10485 RequestorUid: 10485 RequestorPkg: org.openhab.habdroid UnderlyingNetworks: Null] ]
2024-02-17 18:18:04.774 1996-2794 UntrustedW...orkFactory system_server D got request NetworkRequest [ REQUEST id=11580, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10485 RequestorUid: 10485 RequestorPkg: org.openhab.habdroid UnderlyingNetworks: Null] ]
2024-02-17 18:18:04.774 1996-2794 OemPaidWif...orkFactory system_server D got request NetworkRequest [ REQUEST id=11580, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10485 RequestorUid: 10485 RequestorPkg: org.openhab.habdroid UnderlyingNetworks: Null] ]
2024-02-17 18:18:04.774 1996-2794 MultiInter...orkFactory system_server D got request NetworkRequest [ REQUEST id=11580, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&NOT_VCN_MANAGED Uid: 10485 RequestorUid: 10485 RequestorPkg: org.openhab.habdroid UnderlyingNetworks: Null] ]
2024-02-17 18:18:04.802 6743-6743 AbstractWebViewFragment org.openhab.habdroid D Load default website
2024-02-17 18:18:04.862 1996-2278 ActivityManager system_server I Start proc 18445:com.google.android.webview:sandboxed_process0:org.chromium.content.app.SandboxedProcessService0:5/u0i414 for {org.openhab.habdroid/org.chromium.content.app.SandboxedProcessService0:5}
2024-02-17 18:18:04.873 6743-6743 MainActivity org.openhab.habdroid D onCreateOptionsMenu()
2024-02-17 18:18:04.874 6743-6743 MainActivity org.openhab.habdroid D onPrepareOptionsMenu()
2024-02-17 18:18:04.913 6743-6743 AbstractWebViewFragment org.openhab.habdroid D progressCallback: progress = 10
2024-02-17 18:18:05.107 1996-2052 CoreBackPreview system_server D Window{f002b3b u0 org.openhab.habdroid/org.openhab.habdroid.ui.MainActivity}: Setting back callback OnBackInvokedCallbackInfo{mCallback=android.window.IOnBackInvokedCallback$Stub$Proxy@24c606d, mPriority=0}
2024-02-17 18:18:05.242 6743-6743 AbstractWebViewFragment org.openhab.habdroid D progressCallback: progress = 70
2024-02-17 18:18:05.262 6743-6743 AbstractWebViewFragment org.openhab.habdroid D progressCallback: progress = 100
2024-02-17 18:18:05.262 6743-6743 AbstractWebViewFragment org.openhab.habdroid D progressCallback: progress = 100
````
I am able to remotely access the Main UI via myopenhab.org, fwiw.
Is this a known issue? How can I fix it?
<sup>Link to related OpenHAB community forum discussion: https://community.openhab.org/t/openhab-android-app-main-ui-shows-blank-page-in-remote-mode/153982</sup>
hyl0
(hyl0)
October 25, 2024, 9:49am
7
I think i found what the issue might be.
Ive had the same issue for a very long time, and i was playing around trying to figure out why when i open up the app it shows a completely blank page (but only under MainUI)
This has nothing to do with how you connect or where you connect from whether its local or remote. and it also has nothing to do with whether you are self-hosting or not. Clearing the cache also is not the fix.
Im personally self hosting and im using a local node to do some tests with only an internal IP address.
The temporary fix that worked for me:
While you are in the empty MainUI or blank page on the app. Just press the Square button on your android phone, ie. The Recent Apps button, where you would switch between other apps, and switch between another app and go back to the OpenHab app. or you can even Go to Home and switch back into the app. Suddenly the MainUI appeared for me.
I did this many times so its full-proof, at least for me.
What i think might be happening is, the MainUI does load successfully… but its just not shown, something that probably has to do with the “webview”.
Again this isnt a permanent fix but a quick temp fix, but at least we know where to look to fix the problem.
Just my opinion.
Would like to hear if anyone that has this issue can try this out and let me know