Android App "Unable to connect to Home Assistant" Error

Hello,

A few weeks ago, my A15 based phone started prompting me with this error each time I go to a dashboard running a web card - “Unable to connect to Home Asisstant - The Home Assistant certificate authority is not trusted, please review the Home Assistant certificate or the connection settings and try again.” - Outside of this error message constantly popping up and me having to tap outside of it to have it go away, the app can be used as normal.

As far as information for troubleshooting, I’ve had a cloudflare tunnel up for about 6 months that lets me in to this instance. The certificate is valid and I do know that it works, as desktop chrome/mobile chrome both work without an issue. I then went and installed the HA companion app and my certificate on my A13 based tablet. Using all of the same settings, the tablet doesn’t have the error pop up. I then tried to fully uninstall HA on my phone and reinstall, but the error persists.

How is this related to my web card, and how can I make it stop popping up on the app?

Thanks for any help.

I ended up solving this problem, but I’m not sure if it’s just a bandaid fix. I turned off my adblocker for testing some other things, and noticed that one of my sources in adaway was causing the issue. After checking some DNS logs, the source of my problem was www.googletagmanager.com. Once this domain was whitelisted, the issue no longer appears.

This still has me wondering though, why would the HA app throw that error if it’s adblock related, but the chrome version of it on the same device with the same blocklist doesn’t have the issue?