Apps can't access HA

Hello to all,

I am gradually discovering HA and I find the application great.
I installed Home Assistant Supervisor via docker following the tutorial of How to Install Home Assistant on Your Synology NAS – Marius Hosting.
My instance is accessible via the Synology reverse-proxy.

It works perfectly on my local network and in 4G on mobile browsers.
Unfortunately, mobile applications on iOS and Android do not work in 4G.
When I connect to HA locally, no problem. But when I reconnect via 4G network, I am blocked (Unable to connect to Home Assistant).

I have three test phones:

  • iPhone 8 (ios 16.2) → works fine
  • iPhone X (ios 16.1.1) → NSURLErrorDomain error -1200 (SSL)
  • Xiaomi Mi 11 (Android 12) → don’t have log

Capture d’écran 2023-02-12 à 16.35.36

When you get the cannot connect pop-up go to settings and logs are at the bottom of the screen

Tanks, that’s my Android Logs (it still works on iOS):

02-16 15:44:48.798 32288 32288 D WebviewActivity: No unique cases found to override
02-16 15:44:49.191 32288 32299 W mpanion.androi: Cleared Reference was only reachable from finalizer (only reported once)
02-16 15:44:49.461 32288 32288 D WebviewActivity: No unique cases found to override
02-16 15:44:49.489 32288 32288 W Choreographer: Frame time is 0.080051 ms in the future!  Check that graphics HAL is generating vsync timestamps using the correct timebase.
02-16 15:44:49.663 32288 32427 E chromium: [ERROR:ssl_client_socket_impl.cc(985)] handshake failed; returned -1, SSL error code 1, net_error -101
02-16 15:44:49.853 32288 32288 D WebviewActivity: No unique cases found to override
02-16 15:44:50.028 32288 32288 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
02-16 15:44:50.095 32288 32288 D WebviewActivity: No unique cases found to override
02-16 15:44:51.326 32288 32427 E chromium: [ERROR:ssl_client_socket_impl.cc(985)] handshake failed; returned -1, SSL error code 1, net_error -101
02-16 15:44:52.168 32288 32331 D OpenGLRenderer: endAllActiveAnimators on 0xb4000075e8682300 (RippleDrawable) with handle 0xb400007827256b00
02-16 15:44:52.178 32288 32288 D IntegrationRepository: setSessionExpireMillis(): 1676558693177
02-16 15:44:52.178 32288 32288 D IntegrationRepository: setAppActive(): false
02-16 15:44:52.178 32288 32288 D IntegrationRepository: setSessionExpireMillis(): 1676558693178
02-16 15:44:52.178 32288 32288 D IntegrationRepository: setAppActive(): false
02-16 15:44:52.191 32288 32288 D DecorView[]: getWindowModeFromSystem  windowmode is 1
02-16 15:44:52.204 32288 32288 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
02-16 15:44:52.204 32288 32288 D UrlRepository: Using external URL
02-16 15:44:52.261 32288 32288 D IntegrationRepository: isAppLocked(): false. (LockEnabled: true, appActive: false, expireMillis: 1676558693178, currentMillis: 1676558692261)
02-16 15:44:52.267 32288 32288 D SensorReceiver: Received intent: io.homeassistant.companion.android.UPDATE_SENSORS
02-16 15:44:52.268 32288 32322 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
02-16 15:44:52.269 32288 32322 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
02-16 15:44:52.354 32288 32288 D SettingsWearDetection: API unavailable for discovering nodes (no Wear)
02-16 15:44:52.360 32288 32288 D IntegrationRepository: isAppLocked(): false. (LockEnabled: true, appActive: false, expireMillis: 1676558693178, currentMillis: 1676558692360)
02-16 15:44:52.478 32288 32322 D UrlRepository: localUrl is: false, usesInternalSsid is: false, usesWifi is: false
02-16 15:44:52.805 32288 32427 E chromium: [ERROR:ssl_client_socket_impl.cc(985)] handshake failed; returned -1, SSL error code 1, net_error -101
02-16 15:44:52.983 32288 32427 E chromium: [ERROR:ssl_client_socket_impl.cc(985)] handshake failed; returned -1, SSL error code 1, net_error -101
02-16 15:44:54.459 32288 32427 E chromium: [ERROR:ssl_client_socket_impl.cc(985)] handshake failed; returned -1, SSL error code 1, net_error -101
02-16 15:44:54.624 32288 32427 E chromium: [ERROR:ssl_client_socket_impl.cc(985)] handshake failed; returned -1, SSL error code 1, net_error -101
02-16 15:44:56.164 32288 32427 E chromium: [ERROR:ssl_client_socket_impl.cc(985)] handshake failed; returned -1, SSL error code 1, net_error -101
02-16 15:44:56.265 32288 32427 E chromium: [ERROR:ssl_client_socket_impl.cc(985)] handshake failed; returned -1, SSL error code 1, net_error -101
02-16 15:44:57.981 32288 32427 E chromium: [ERROR:ssl_client_socket_impl.cc(985)] handshake failed; returned -1, SSL error code 1, net_error -101
02-16 15:44:57.981 32288 32427 E chromium: [ERROR:ssl_client_socket_impl.cc(985)] handshake failed; returned -1, SSL error code 1, net_error -101
02-16 15:44:58.657 32288 32371 D LogcatReader: Read logcat for pid 32288

I specify that my synology reverse-proxy is configured with websockets open

looks like you have SSL handshake errors, this is related to your own device possibly not trusting the certificate. These are not errors the app can solve unfortunately.

It’s not a popup. The error is displayed at the center of the screen and there is no other activable area than “retry now” label

that is not an app generated error but one created by the HA frontend then