aex351 / home-assistant-neerslag-app

Neerslag app for Home Assistant. All-in-one package (Sensors + Card).
62 stars 18 forks source link

Card not working on android #53

Open stappel opened 5 months ago

stappel commented 5 months ago

In a web browser the card is working fine, but in the Home Assistant compagnon App on a Android phone it is showing: Custom element doesn't exist: neerslag-card. Maybe releated to change #40 ?

aex351 commented 5 months ago

The problem is related to how the caching mechanism in Home Assisant works. I didn't find a good solution yet to force a page refresh. So whenever there is an update, this error might temporarily show until the page is refreshed.

In this case the card is actually working fine and by closing the app, clearing the cache and restarting the app. The card should be shown again.

stappel commented 5 months ago

Closed spo, cleared cache, restarted app. No succes yet. Screenshot_20240520_110632_Home Assistant

pvossel commented 5 months ago

Since latest update same for me.

Had similair issues with the atomic calendar revive addon. The issue there was that the webview i was using is very old (Samsung Galaxy Tab 2 with Omnirom Android 7).

Might be the same case here. Previous version did still work. Dont know if something in the code has changed other then that it now runs local.

aex351 commented 5 months ago

Android 7 is end of life. https://en.wikipedia.org/wiki/Android_Nougat. I am reading that the last update was in 2019.

It could be that the now compiled version of the neerslag-card is using a method that is not compatible with the old version of webview from Android 7. I would need log files and/or console output to determine if this can be easily fixed.

In any case, with the latest Android version this card is running fine.

stappel commented 5 months ago

Me issue in on a Samsung Phone running the HASS app in Android 13

pvossel commented 5 months ago

On my Phone it started to bug aswell in the HA app. After deleting the cache "webview" it was fixed.

Android > settings > apps > system apps > webview > delete cache

attila123456 commented 3 months ago

I get the same error multiple times a day on the web and in the android app, sometimes refreshing the page helps, sometimes it doesn't. This is the only card in my setup that seems to be affected.

woempiej commented 3 months ago

Hi,

This issue is not Android (webview) based. Beside I have this issue on all of my Android devices, I have the same in Firefox browser. I delete my cache and history from Firefox automatic after closing the browser app so it can not be a cache or history issue.

I've noticed that the card is presenting oké when there is no rain. If there is rain (so when the card has to present data) then this problem occures.

afbeelding

pixelmagic66 commented 2 months ago

Also have this issue on a iPad Air 2, out of support but very useful for a wall mount display. Would be nice if this was resolved.