Home Assistant for Android unable to login to Home Assistant

I have had to temporarily use an old phone running Android 7.1, and installed Home Assistant Companion on it - 2023.1.1-full.

When I try to login with my credentials, it says “Invalid username or password” and the following message is logged in HA:

Logger: homeassistant.components.http.ban
Source: components/http/ban.py:95
Integration: HTTP (documentation, issues)
First occurred: 19:31:12 (2 occurrences)
Last logged: 19:32:13

Login attempt or request with invalid authentication from ipv6 address (ipv6 address). Requested URL: '/auth/login_flow/cf36a6e598fc1a8cb62a9704b3d99f4f'. (Mozilla/5.0 (Linux; Android 7.1.1; E5803 Build/32.4.A.0.160; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/56.0.2924.87 Mobile Safari/537.36 Home Assistant/2023.1.1-3124 (Android 7.1.1; E5803))

Logging in via browser works fine, with the credentials pasted in from the same place.

check that android system webview is up to date, if using a custom ROM make sure that you have googles version of webview and that it is the default webview on the device.

1 Like

Thanks. I’m running stock android on a Sony Experia Z5 Compact. It seems that with Chrome enabled Android System Web View is disabled. I disabled Chrome, which enabled System Web View. Play Store then allowed me to update System Web View (from 56 to 111!) after which I was able to login using the companion app.

I was then able to reenable Chrome (which disabled System Web View) and continue to use the HA app no problem.

Thanks again!