HA unavailable via app

Lately, the HA app on my smartphone often says that HA is unreachable, while it is perfectly reachable from the Firefox browser on the same smartphone.

It shows a blank screen, and after some time it asks if I want to close the app or wait.

What could be the reason for this, and howto solve it ?

app >> settings >> companion app >> servers >> yourHAserver >> Details

do you have an internal and external URL set
Are they correct?

If you select the internal do you have the appropriate wifi networks set?

ultimately you need to determine why app cannot connect to network.
if you are transitioning wifi to cellular you may experience some issues as HA switches different web address. I commonly need to refresh app when at edge of my home wifi becasue HA still connecting to internal IP even though I leave home.

Thanks for your help.
In the app settings, my HA URL is set to http://192.168.0.4:8123 in my LAN
I don’t have a subscription.
I saw that the home network was not set, so I set it to the ssid of my WiFi,
and also set the internal connection URL also to http://192.168.0.4:8123

I’ll see if that solves the problem.
Was this what you meant ?
I have no external URL, I only use the app when the smartphone is connected to my LAN, and sometimes via a VPN, but when using the VPN, I am also connected on my own lan.
When using the VPN, I did not encounter this problem so far.

more or less

so the issues you have are only when you are at home?
should it be http or https? HA is https by default. what you use on your computer?

if what you did works then all is likely OK.

On my laptop, and in the browser on my smartphone, where the app often does not work, I also use http, probably because HA was installed years ago, when https was not used by default.
I just tried https in my browser, and get a response that HA cannot provide a secure connection, so in my HA, https is not enabled.

Could it be that the app sometimes tries to make a https connection and that is the reason that it displays the blank screen ?

It is not such a long time ago, that this error appeared, perhaps because of an app update, the app tries https instead of http ???

If it works remains to be seen, because the connection error is not always there, about half of the time I try to connect, some days I have no problems, and some days, connection is refused and I have to restart the app several times before it connects. But always I see that HA is accessible via a browser on the same smartphone and at the same time as where/when I use the app.

If you get warning message then https is enabled. The message is just saying “connection not secure” because see the cert is not verified

If https is not enabled you get 404 not available

No it isn’t. It is http (for local access).