WKWebView default User-Agent changed

It seems in the iOS 10 betas, the default User-Agent sent by WKWebView has changed. In iOS 9, it was something like "Mozilla/5.0 (iPad; CPU OS 9_3_2 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13F69", and in iOS 10 it's like this: "3D%20Showcase/73 CFNetwork/808 Darwin/16.0.0" (the name of my app is "3D Showcase"). I don't explicitly set either the WKWebViewConfiguration.appNameForUserAgent or WKWebView.customUserAgent properties.


The problem is that the javascript code we're loading in that web view was designed for use on the web, and it's looking to determine if it's running on iOS (it's mostly WebGL code and it takes steps on iOS to not crash). Now, we can certainly modify the check or the user agent string, but this seems like a big change, and I'm wondering if it's a bug.


Thanks!

I'm having a problem with this too. The new user agent format has changed again in GM seed iOS 10.

Our ad server cannot decode the new string. Is there any documentation on this change, cos I can't find any!

WKWebView default User-Agent changed
 
 
Q