Open cybermcm opened 3 years ago
What's your server?
I ask because it took my installation also quiet a bit to load the gui on a Xiaomi Mi8. Turned out my raspberry 3b had been the problem. I migrated it to a docker container on a powerful nas and it loads instantly now.
I'm using a RPI4 as my server, and it performs quite well. I forgot to mention, other phones are working, so it is an issue with my Samsung SM-G900F klte. I thought I might post it anyway because this Lineage version is very up2date, my other phones use older Android versions, maybe this is something that breaks other phones as well in the future.
For me i get stuck very often on accessing via remote on this sort of white screen But it feels very random
When using openHAB UI 3 as default, I believe the android app could keep the page in cache instead os reloading with a blank page, so it would be a more native experience when switching over between apps.
I can repro this as well, and in my case it seems related to SSL errors:
My server URL is set to https, so MTM should know about the self-signed certificate, but I'm not sure whether that helps for WebView...
If any WebView in the app sees an untrusted certificate, it's checked against MTM. MTM won't ask for it if it isn't known to it, though. The certificate is known if it's the same than for the sitemaps and rest api version check, which is most likely the case.
Maybe https://developer.android.com/reference/android/webkit/WebViewClient#onReceivedSslError(android.webkit.WebView,%20android.webkit.SslErrorHandler,%20android.net.http.SslError) isn't called for errors in js?
@mueller-ma: In my case it is a plain connection without security. It is working with other devices, but not with my old one (with new lineage image)... Certificates (and related troubles) are not to blame in my case.
Can you make sure you have the latest WebView installed? https://play.google.com/store/apps/details?id=com.google.android.webview
According to the Play Store WebView isn't installed at all. Just to make sure, workaround still "working": loading OpenHAB, waiting for white screen, Taskswitcher (I don't have to switch the app), going back to OpenHAB -> all working
I see the same behavior on LineageOS (Android 11) on my Raspberry Pi. Also the app sometimes goes to the sitemap, when connection fails.
Same here. LineageOS 17.1, Android 11. Latest OH APP. OH 3.1 on rpi4. Task switch helps but is annoying.
UPDATE: just upgraded to LineageOs 18.1, Android 11 and now it works properly. Only thing left is jumping back to overview on rotate, but there is already another ticket for that.
@mueller-ma I think installing the latest WebView based on chromium would help, but the main issue here would be for devices without Google Play. I use a lineage os device and you cannot easily update the WebView. We could think about changing the app to use Firefox gecko View. What do you think?
What do you think?
I, for one, think this is not a good idea in terms of UX, because users will (rightfully) expect an app to work without having to install Firefox beforehand.
Its not using firefox, but its a complete webview implementation that is also used by firefox. https://firefox-source-docs.mozilla.org/mobile/android/geckoview/consumer/geckoview-quick-start.html
It would make the app independent from the system webview.
Bundling a WebView (or GeckoView in this case) might be a good idea, especially because we don't have control over the system WebView. I see a few crashes in Crashlytics on devices without WebView at all.
Should I create a new ticket for that? Or do you want to discuss it further in the forum before?
I have the same white screen with remote server. Also sitemap not loading. If i use local server app is working. Openhab 3.1 Xiaomi mi 8
Should I create a new ticket for that? Or do you want to discuss it further in the forum before?
It can be discussed here. I'll open a WIP PR soon.
Someone provided a workaround to this issue. The cause is apparently the country OH setting. If you reset this setting, the issue is solved. Now the question is why this country OH setting is so problematic?
@mueller-ma : with this information, can you try to reproduce the issue and think if the problem could be in the Android app?
Can someone try to reproduce this with 3.10.3-beta? While doing this, please also capture the Android logs via ADB. You can also try to clear the cache in the app settings.
Actual behaviour
openHAB configured to startup with 3 UI, on startup just a white screen with a loading progress bar appears, see screenshot current workaround: doing a task switch to another app and back and UI works
tried to clean app cache, deleted and reinstalled app, cleaned Android webview cache -> no success startup with HABPanel -> working startup with HABPanel -> switching to 3UI -> not working (unless I switch apps)
Expected behaviour
app should startup without issue
Steps to reproduce
happens every time
Can you reproduce the issue in demo mode?
happens with my own server and demo mode
Environment data
Client
Logs
App log
clean app start -> waiting on white screen (from 05-13 13:53:58.771 to 05-13 13:54:21.601) -> app switch -> working