Many thanks for your answer. It’s really helpful.
I have investigated this, finally. But, some moments still unclear.
On the API front, start here.
I had setup entitlements that required.
<key>com.apple.developer.networking.slicing.appcategory</key>
<array>
<string>communication-9000</string>
</array>
<key>com.apple.developer.networking.slicing.trafficcategory</key>
<array>
<string>video-2</string>
</array>
I had created an URLRequest and changed networkServiceType property to video (because only it fit our requirements with low-latency)
urlRequest.networkServiceType = .video
and tried to load WKWebView with this request
webView.load(urlRequest)
But, i'm not sure that "slicing" works. And no idea how to debug it.
Now, next interesting question for me. Is it possible to check that current network (5G) support slicing?
In case, if my solution won't work (I'm not sure that is WKWebView supporting it, because in documentation it's about URLSession & WebSockets only)
We have some idea:
Try to route all application traffic (including WKWebView) through the "Cellular 5G" even if device connected to Wi-Fi.
Interesting, is it possible?
For managed devices, the device manager can assign apps to slices starting with iOS 17. I found WWDC 2023 Session 10040 What’s new in managing Apple devices informative on this subject. Start around the 20:15 mark.
Device management is not suitable,
because here a requirements to distribute customer’s app through the AppStore.
Thanks in advance.
Best regards, Eugene.
Topic:
App & System Services
SubTopic:
Core OS
Tags: