How should WKWebView configure networkServiceType for 5G network slicing?

I’m adding 5G network slicing support to a web browser app using WKWebView.

The app declares:

  • com.apple.developer.networking.slicing.appcategory: webBrowser-9003

  • com.apple.developer.networking.slicing.trafficcategory: defaultslice-1

The documentation says that apps should also set networkServiceType on URLRequest or URLSessionConfiguration. However, most requests made by a WKWebView, including subresources, JavaScript fetches, and WebSockets, are created internally by WebKit.

Is declaring webBrowser-9003 and defaultslice-1 sufficient for WKWebView traffic, or is there a supported way to configure the network service type for the entire WKWebView network session?

How should WKWebView configure networkServiceType for 5G network slicing?
 
 
Q