Android app is not working

Hello I have problem with my homeassistant app. When I try to connect to my hassio from my android phone homeassistant log contains this:
`ERROR (MainThread) [aiohttp.server] Error handling request

Traceback (most recent call last):
File “/usr/local/lib/python3.7/site-packages/aiohttp/web_protocol.py”, line 418, in start
resp = await task
File “/usr/local/lib/python3.7/site-packages/aiohttp/web_app.py”, line 458, in _handle
resp = await handler(request)
File “/usr/local/lib/python3.7/site-packages/aiohttp/web_middlewares.py”, line 119, in impl
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/real_ip.py”, line 39, in real_ip_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 73, in ban_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 127, in auth_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 129, in handle
result = await result
File “/usr/src/homeassistant/homeassistant/components/http/data_validator.py”, line 60, in wrapper
result = await method(view, request, *args, **kwargs)
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 84, in handle_req
resp = await func(view, request, *args, **kwargs)
File “/usr/src/homeassistant/homeassistant/components/auth/login_flow.py”, line 237, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 153, in async_configure
result = await self._async_handle_step(flow, cur_step[“step_id”], user_input)
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 201, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File “/usr/src/homeassistant/homeassistant/auth/providers/homeassistant.py”, line 288, in async_step_init
user_input[“username”], user_input[“password”]
KeyError: ‘username’`
and mobile app wrote Something went wrong
here is video from phone

Did you enable it by putting mobile_app: in the configuration.yaml file?

Yes I did, here is configuration.yaml:

default_config:

mobile_app:

discovery:

tts:

  • platform: google_translate

group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml

frontend:
themes: !include themes.yaml

input_boolean: !include input_booleans.yaml

what kind of device is this? Does it have google play services? Android system webview?

My phone is Doogee S60(android 7). I have google play services. But I don’t have system webview(disabled). Webview is disabled because of chrome embedded webview.

Android app requie webview, bevande containts it.

2 Likes

Thank you! This problem was driving me crazy and the solution is soo simple!

Same situation, solved it by enabling dev options and changed it there, Thanks!