No app alerts when reconnecting wifi, "device not connected to local push notifications"

Dear,

Fix needed for notification problem.

Despite the solution provided in https://community.home-assistant.io/t/solved-device-not-connected-to-local-push-notifications/476750/5, on several devices no notifications are received after reconnecting the wifi.

Steps to reproduce:

  • Disconnect wifi
  • Time spent, usually several hours
  • Connect wifi

Companion version 2023.9.2-full (also happens with 8-limited); Home Assistant 2023.8.4
Persistent notifications are set to “always”, the notification is visible on both devices/
1 device has Google Play Services, other does not have it.

Notifications are not coming through with error in log:

“device not connected to local push notifications”

Fix: force kill the Companion app, open it again. Then notifications resume working.

Note that both devices run Android 12-13, and are connected to Mullvad VPN at all times.

There are no TicWatch of Windows 11 PC app running in the network as mentioned in the linked topic.

Excerpt from companion log:

12417 11805 E WebSocketRepository: Unable to authenticate
12417 11805 E WebSocketRepository: kotlinx.coroutines.TimeoutCancellationException: Timed out waiting for 30000 ms
 12417 11805 E WebSocketRepository: 	at kotlinx.coroutines.TimeoutKt.TimeoutCancellationException(Timeout.kt:191)
12417 11805 E WebSocketRepository: 	at kotlinx.coroutines.TimeoutCoroutine.run(Timeout.kt:159)
 12417 11805 E WebSocketRepository: 	at kotlinx.coroutines.EventLoopImplBase$DelayedRunnableTask.run(EventLoop.common.kt:501)
 11805 E WebSocketRepository: 	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:280)
11805 E WebSocketRepository: 	at kotlinx.coroutines.DefaultExecutor.run(DefaultExecutor.kt:109)
 12417 11805 E WebSocketRepository: 	at java.lang.Thread.run(Thread.java:1012)
12417 11805 W WebSocketRepository: Unable to send message, not connected: WebSocketRequest(message={type=ping}, timeout=30000, eventFlow=null, eventTimeout=0, onEvent=null, onResponse=null)
 12417 11806 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
 12417 11806 D ServerConnectionInfo: Using external URL
 12417 11806 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
 12417 11806 D ServerConnectionInfo: Using external URL
12417 11806 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
 12417 11806 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
 12417 11806 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true
12417 11806 D ServerConnectionInfo: localUrl is: false, usesInternalSsid is: false, usesWifi is: true

Please submit an issue on GitHub filing out the issue template completely

Same issue Here, companion version 2023.10.2
Force kill of the app worked.

Hi,
same issue for me too.
Had you open an issue on Github please ?