You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iOS device model, version and app version
ios 17
iphone 15 pro
App 2024.624
Home Assistant Core Version
2024.4.3
Describe the bug
I am using OTP auth via cloudflare which emails me a pin. I have to put in my email which brings me to the second part of the screen. When I check my email, and then go back to the HA app, it refreshes the webview which breaks the flow. This is very unusual behavior from a webview.
This actually breaks EVERY kind of two factor flow - tokens, MFA, whatever. I can't even switch to my MFA app.
I suspect the error would be happening somewhere around here
To Reproduce
Open a webview in HA app
Switch to an app
Switch back to the app
I think its specifically when the keyboard goes down though
I noticed the webview will refresh when the keyboard is retracted even when I stay in the same app. Maybe there is some code which checks if the keyboard tray was exited?
For example:
Open a webview
enter in some info to validate it refreshed and have the keyboard open
Get a notification (or even swipe down to the notification tray and long press an existing notification)
Long press it and then exit the notification (remains in the same app)
Keyboard disappears and the webview refreshes
Expected behavior
Webview remains where it was and does not refresh
Screenshots
Additional context
The text was updated successfully, but these errors were encountered:
iOS device model, version and app version
ios 17
iphone 15 pro
App 2024.624
Home Assistant Core Version
2024.4.3
Describe the bug
I am using OTP auth via cloudflare which emails me a pin. I have to put in my email which brings me to the second part of the screen. When I check my email, and then go back to the HA app, it refreshes the webview which breaks the flow. This is very unusual behavior from a webview.
This actually breaks EVERY kind of two factor flow - tokens, MFA, whatever. I can't even switch to my MFA app.
I suspect the error would be happening somewhere around here
iOS/Sources/App/WebView/WebViewController.swift
Line 600 in 1a73304
To Reproduce
Open a webview in HA app
Switch to an app
Switch back to the app
I think its specifically when the keyboard goes down though
I noticed the webview will refresh when the keyboard is retracted even when I stay in the same app. Maybe there is some code which checks if the keyboard tray was exited?
For example:
Open a webview
enter in some info to validate it refreshed and have the keyboard open
Get a notification (or even swipe down to the notification tray and long press an existing notification)
Long press it and then exit the notification (remains in the same app)
Keyboard disappears and the webview refreshes
Expected behavior
Webview remains where it was and does not refresh
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: