Mobile Android HA app can't find custom cards

I know this has been reported before, but has this ever been solved? I’m running HA version 2022.6.7 and the mobile app android version 2022.2.1-full. I’m working on a dashboard that uses custom cards, and more than half the time, the mobile app can’t load the custom cards and says they don’t exist. Later, for no apparent reason, they suddenly work. Until they don’t. Again. and again.

Does anyone have a solution? Or an idea why?

Make sure your device is running the latest version of Android system WebView and that it is Google’s version and not anything else. It needs to be the default WebView on the device.

Double check the behavior in chrome for Android then I’d go on GitHub to the custom card author and file an issue

So, as it turns out, it’s not just the mobile app that is having issue. It’s also happening in FF on a windows desktop.

The custom card that is most problematic is WebRTC. Sometimes it loads, and other times it doesn’t. If I hit reload Resources, sometimes it fixes it. But not always.

This component was installed via HACS and here is the resource card:

/hacs/webrtc/www/webrtc-camera.js

The component was installed at /config/custom_components/webrtc/

Does that sound right? The card itself is located at /config/custom_components/webrtc/www/webrtc-camera.js. I was expecting to find the card at /config/www/community/, so that is a bit confusing.

Thoughts?

Also, my Android WebView is up to date form the Play store. Version 102.0.5005.125.

Larry

Maybe it’s just incorrect resource cards in my config? Can someone explain why some resource entries start with /local, others with /hacsfiles, and some start with neither?

And, where on the file system does each of these paths expect to find the component and/or .js file?

anything found in /config/custom_components is a custom component and not a card although the 2 may be related.

Cards are typically placed in the /config/www folder because that folder is exposed to the web and doesn’t require separate authentication to access its files to show a custom card.

Thanks for jumping in here…

I think I understand the difference between a custom card and a custom component, but in the case of WebRTC, it appears to be both.

Anyway, I still remain unsure about the path-ing of the resources entries…