When trying to login into home assistant using a browser (Safari, Chrome and Firefox) on iOS, you can not login. The login screen keeps reloading even with correct credentials (work in a browser on a Mac and iOS 13).
After two tries you see the error: A problem has occurred repeatedly on: 'http://x.x.x.x:8123/auth/authorize?response_type=code&client_id=https://home-assistant.io/iOS&redirect_uri=homeassistant://auth-callback'
I would expect that the user name and password would be validated and I would see the dashboard being loaded.
iPhone 8 + iOS 14 build 18A5351d
Safari native iOS browser
Firefox browser on iOS
Chrome browser on iOS
No JS errors are visible.
http://x.x.x.x:8123/auth/authorize?response_type=code&redirect_uri=http%3A%2F%2Fx.x.x.x%3A8123%2F%3Fauth_callback%3D1&client_id=http%3A%2F%2Fx.x.x.x%3A8123%2F&state=eyJoYXNzVXJsIjoiaHR0cDovLzE5Mi4xNjguMC4xMDA6ODEyMyIsImNsaWVudElkIjoiaHR0cDovLzE5Mi4xNjguMC4xMDA6ODEyMy8ifQ%3D%3D
This appears to be a bug in iOS 14 beta 5. See home-assistant/iOS#925 for a little extra context.
Just for the benefit of anyone looking into this, Zac posted some extra details of the crash on Discord. Sadly this is also seen in the Technology Preview (aka beta) of the desktop Safari.
0 com.apple.WebCore 0x00000004d9abcde5 WebCore::EventHandler::dispatchMouseEvent(WTF::AtomString const&, WebCore::Node*, int, WebCore::PlatformMouseEvent const&, WebCore::EventHandler::FireMouseOverOut) + 2773
1 com.apple.WebCore 0x00000004d8137d49 WebCore::EventHandler::handleMousePressEvent(WebCore::PlatformMouseEvent const&) + 3529
2 com.apple.WebKit 0x000000010af0fc7d WebKit::WebPage::mouseEvent(WebKit::WebMouseEvent const&) + 475
…
Same error but can be login. When entering username and password, click "return" button on ios keyboard.
Same error but can be login. When entering username and password, click "return" button on ios keyboard.
Thanks! It helped me to login into the HA app again.
Same error but can be login. When entering username and password, click "return" button on ios keyboard.
Thanks! Worked for me as well with this workaround.
Same error but can be login. When entering username and password, click "return" button on ios keyboard.
Awesome. Been struggling trying to login. Return worked!
Happens on Safari in Big Sur too, but the workaround doesn't work there sadly (no biggie for me though).
On iOS, I notice that it occurs when I try to reveal the password. I'll do some JS digging...
Can someone check if it also happens in these demos: https://mwc-demos.glitch.me/
@bramkragten what exactly would you like tested?
They also crash, as soon as I hit a button.
Yeah interacting with anything on that https://mwc-demos.glitch.me/ link crashes and reloads the web view for me on iOS 14 b5 and Safari Technology Preview on macOS Big Sur beta.
So it's not a Home Assistant specific problem.
Yep. Button crash.
Ok, so it is an upstream issue
If someone with the issue and logs could create an issue there, we can check if Apple or Google should fix
https://github.com/material-components/material-components-web-components
Submitted a bug report via the feedback of Apple. Hopefully it’s fixed soon.
Update on this from Google:
We've filed a report to Apple and I've updated the webkit bug. The issue is
delegatesFocus: true. A reproduction outside of MWC can be found here:
- crash: https://jsbin.com/hudimuseya/edit?html,output
- no crash: https://jsbin.com/hegogibike/edit?html,output
We'll keep an eye on both the webkit bug and our report to Apple. This looks like a bug on their end, so I'm going to close this issue since there's no further action for us to take.
Apple has fixed this, closing issue
Sure thanks
On Thu, 20 Aug, 2020, 22:59 John Doe, notifications@github.com wrote:
Submitted a bug report via the feedback of Apple. Hopefully it’s fixed
soon.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/frontend/issues/6654#issuecomment-677901404,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKCXTC7PLYGW5HQ5JHHPLZDSBWFD3ANCNFSM4QFH725A
.
Thanks guys
On Sun, 30 Aug, 2020, 06:47 Given Ncube, givenyslim12@gmail.com wrote:
Sure thanks
On Thu, 20 Aug, 2020, 22:59 John Doe, notifications@github.com wrote:
Submitted a bug report via the feedback of Apple. Hopefully it’s fixed
soon.—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/home-assistant/frontend/issues/6654#issuecomment-677901404,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKCXTC7PLYGW5HQ5JHHPLZDSBWFD3ANCNFSM4QFH725A
.
I'm afraid you closed this too early. Have this bug with Safari 14.0 on macOS 10.15.7. Could anyone please state, where Apple fixed this? (Safari Version or so)
Thanks
@christianwgd It was fixed in one of the beta versions of Safari on BigSur (and on iOS).
However, Apple decided to push out a broken Safari 14 to Catalina.
I think someone is currently preparing a workaround.
Thanks to @TheJulianJES. I upgraded my home assistant to 0.115.3 which has solved my problem. Seems like the workaround is included there.
Most helpful comment
Same error but can be login. When entering username and password, click "return" button on ios keyboard.