arjenhiemstra / ithowifi

Itho wifi add-on module (ESP32 wifi to itho I2C protocol)
GNU General Public License v3.0
175 stars 29 forks source link

Incompatibility with iOS 15 and Safari on MacOS Monterey Beta B7 #34

Closed arjenhiemstra closed 2 years ago

arjenhiemstra commented 2 years ago

the websocket is not functioning properly on these versions, on iOS it seems totally unusable, on MacOS chrome seems to be working fine and after a few minutes Safari seems to get restored and functions properly until the next reload of the browser window.

Error message: [Error] WebSocket connection to 'ws://nrg-itho-1234.local/ws' failed: The operation couldn’t be completed. (kNWErrorDomainPOSIX error 54 - Connection reset by peer)

Update: https://developer.apple.com/forums/thread/685403 I found a message with the same error on the Apple forum, no solution yet

arjenhiemstra commented 2 years ago

On iOS: System setting=>safari =>Advanced=>Experimental Features=>"NSURLSession WebSocket" is default On. Switching it to off significantly improved the experience. Most seems to work fine after.

arjenhiemstra commented 2 years ago

I looks like it has been fixed with the latest beta4 firmware version. Some testing would be nice. https://github.com/arjenhiemstra/ithowifi/commit/a985ad0ddba9d1800f84376f21286daa95eb09e3

jasperslits commented 2 years ago

Confirmed it works on IOS 15 with iPad with workaround reverted. On MacOS Monterey it works with Safari now too

jasperslits commented 2 years ago

@arjenhiemstra : this should be closed. It works fine on all apple devices without workarounds