[solved by installing new WebView version] Lovelace cards lost vertical spacing

FYI: on my Android device, the vertical spacing between cards, in the companion app, seems not to be respected anymore but horizontal is OK. On FF also no issue.
This is only on Android, my dashboards on Pc (FF & Chromium) and Chromium on Raspbian are fine.

I’m using v2024.1.5 minimal on Android 10.

do you see the same issue using chrome for android on the same device?

Hi Daniel, thanks for replying!

I don’t use the play store on that tablet - it’s not configured - and like to keep it that way.
It’s not a big thing, just aesthetics and I guess somehow this will get solved anyway.
This was mainly to draw the attention in case I’m not the only one.

With the vertical space not being respected anymore, I had to say that there is no space anymore, the cards are touching.

2 things control that. HA frontend changes and also the WebView version on the device, keeping WebView up to date is like keeping your browser up to date its important for troubleshooting to make sure you are up to date. If you had a custom ROM on your device then you may want to consider using Googles version of Android System WebView as custom ROMs often ship with incompatible webview as we have seen in the past.

1 Like

Thank you for explaining, I read some about WebView now for the first time and it makes sense what you write about updating.
I don’t use a custom ROM, I just disabled as much from google as possible and not configured the play store.
I’m using FF (sideloaded) on the tablet, not the best choice for it but use it as my main browser everywhere.
I guess there is no (easy) way to update WebView in my setup, right?

go back and make sure you did not disable Android System WebView.

when you check that you did not disable it you can also check what package name it uses and try to find an APK for the same package. There are a couple different variants so it depends on that. Some devices may not allow you to update it and only update via play store, that was one of the main changes in Android 5. Amazon for example pushes updates randomly to their devices and play store will not update it.

It’s running, v81.0.4044.138

Where can I see that?

if you didnt see it on the page where the version number is listed you can force close the HA app and open it again. Settings > Companion app > troubleshooting > show and share logs…there will be a log line stating the webview package used

Done, searched for anything webview related:

WebViewFactory: Loading com.google.android.webview version 81.0.4044.138 (code 404413833)
WebviewActivity: onReceivedHttpError: 404 : Not Found for: http://172.16.0.4:8123/local/ThemeOverride.js
WebViewPresenterImpl: Found color -16537100.
WebViewPresenterImpl: Found color -328966.
WebViewPresenterImpl: Found color -15720924.
WebViewPresenterImpl: Found color -15658735.
WebViewPresenterImpl: Found color -15720924.
WebViewPresenterImpl: Found color -15658735.
WebviewActivity: onReceivedHttpError: 404 : Not Found for: http://172.16.0.4:8123/custom_components/webrtc/www/webrtc-camera.js
WebviewActivity: onReceivedHttpError: 404 : Not Found for: http://172.16.0.4:8123/config-template-card.js
WebviewActivity: onReceivedHttpError: 404 : Not Found for: http://172.16.0.4:8123/custom_components/webrtc/www/webrtc-camera.js
WebviewActivity: onReceivedHttpError: 404 : Not Found for: http://172.16.0.4:8123/config-template-card.js

grab the latest APK off apkmirror and sideload it…81 is very old

1 Like

Thanks Daniel, it took some trial & error to find the right one that didn’t crash the companion app.
Have now v123.0.6312.40 on it and with 2 major benefits:

  • app is faster (starting & opening cards)
  • at some time, I was getting borders on pop up cards (browser mod) which are gone now.

All in all a big improvement! :+1: :bowing_man:

1 Like