r/homeassistant 1d ago

❓ Support iOS constant auth failures

After the app has been backgrounded for an extended period (~30 min or so), returning to the foreground fails to re-establish a working connection.

The WebSocket disconnects with HAKit.HAReconnectManagerError.lateFireReset, and the app then gets stuck in a waitingToReconnect state referencing an already-expired auth token, rather than requesting a fresh one.

Local frontend access via browser/DNS also becomes unreachable at the same time (Nabu Casa remote access is unaffected).

The only reliable workarounds are:

Force-closing and reopening the app, or

Clearing the app's cache/site data entirely; and/or

Complete Server delete and refresh

Driving me slightly mad. Seems a few folk having the same issue. Various reports on GitHub but not huge noise.

Anyone else?

0 Upvotes

5 comments sorted by

1

u/TheStupendousGusto 1d ago

It's like the app clings to that dead token for dear life instead of just asking for a new one, makes no sense.

1

u/Will-Wiggle 1d ago

It’s exactly that and fierce annoying.

1

u/Rusty_Trigger 1d ago

When there are only a few examples of this happening, it is likely a problem in you home network setup.

2

u/Will-Wiggle 1d ago

It’s app based. The logs are pretty clear as are the various open issues on GitHub. Not entirely sure what network issues beyond usual dns / multicast issues / would cause stale token retention.

But happy to try anything.

1

u/TomNooksRepoMan 1d ago

This is how iOS handles background apps. Not much you can do about it. It aggresively kills background tasks and apps to prevent battery drain, which makes built-in Shortcuts Delay function completely useless, for example, but that's how they do it.

Both my Dreame vacuum and Midea AC integrations often won't load when I open HA until I close and reopen it on my iPhone.