WKWebView Websocket connection fails

Our app connects to our backend via websocket from within a WKWebView. This works without any issues in iOS 14.

On iOS 15 Beta 5 the websocket connection fails initially, then succeeds after the app ran for 5 minutes or so.

I tried taking a RVI packet trace, but couldn't due to my iPad having the new style of UDID.

Any ideas how we can get this fixed before the release?

On iOS 15 Beta 5 the websocket connection fails initially, then succeeds after the app ran for 5 minutes or so.

If this worked on iOS 14 but not is failing on iOS 15 this is grounds for a bug report. Please respond with your Feedback ID.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com

We are experiencing the same issue with the final iOS 15 build we installed yesterday (19A344). Will file a bug report as well.

Have been able to work around the issue temporarily by switching from the built-in web socket to cordova-plugin-advanced-websocket.

My feedbackID is: FB9631338 . I filed it against WebKit but this could be an issue deeper in the platform.

Thank you for opening this bug report. I see it internally. Would you be able to add a focused sample to your bug report?

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com

Hi Matt,

I filed bug report FB9616225. Creating a focused sample will be quite time intensive, so this might take a while.

That said, I noticed that it manages to connect consistently after between 1 and 2 minutes. Meaning: I launch the app, websocket connection fails. With the app in the foreground, I wait 1 minute and it is still offline, but then it manages to connect before a second minute passes.

Maybe that provides a useful hint?

Thank you, Michi

WKWebView Websocket connection fails
 
 
Q