[quote='795547021, wangshixiong, /thread/795547, /profile/wangshixiong'] Why does NSURLSession with the multipath service type seamlessly use cellular when the Wi-Fi has no internet, but WKWebView does not exhibit the same fallback behavior? [/quote] Because Multipath TCP (MPTCP) is something you have to opt in to. You’re doing that with URLSession by setting the multipathServiceType property. You can’t do that with WKWebView because it doesn’t have the equivalent of that property, and thus it uses regular TCP. Regular TCP won’t do this sort of switching. The fundamental issue here is your Wi-Fi network. It seems like your accessory is publishing a network that claims to provide access to the Internet but doesn’t. This causes iOS to switch the default route, which then triggers this problem. The best solution to this problem is to change your accessory to not do that. There are other options, as I explain in Working with a Wi-Fi Accessory. That post in part of my Extra-ordinary Networking series, and the othe
Topic:
Safari & Web
SubTopic:
General
Tags: