Cant able to test HTTP/3 in iOS 16

I am trying to enable HTTP/3 support for network calls in my app, While i was testing i could see my protocol as h3 in iOS15 but in iOS 16 it always comes as h2 even though after enabling assumesHTTP3Capable. Also enabling HTTP/3 in iOS 16 has been replaced with L4S. My question is how to test HTTP/3 support in iOS 16?

Do you test on device ? AFAIK, http/3 not available in simulator.

https://developer.apple.com/documentation/technotes/tn3102-http3-in-your-app

x2 no h3 on iOS16 for me too, on iPhone 14 pro max, 16.1.1

Right, as Claude31 mentioned, take at TN3102 HTTP/3 in your app and checkout what is returned in the URLSessionTaskMetrics for the protocols used when making a request to the server. Today I am seeing:

2022-11-16 07:19:19.134187-0800 TestHTTP3[17862:449235] task will start, url: https://google.com
2022-11-16 07:19:19.792692-0800 TestHTTP3[17862:449235] protocols: ["h2", "h3"]
2022-11-16 07:19:19.794148-0800 TestHTTP3[17862:449235] task finished with status 200, bytes 14970
2022-11-16 07:19:26.354325-0800 TestHTTP3[17862:449235] task will start, url: https://google.com
2022-11-16 07:19:26.462943-0800 TestHTTP3[17862:449235] protocols: ["h2", "h3"]
2022-11-16 07:19:26.463625-0800 TestHTTP3[17862:449235] task finished with status 200, bytes 14970
Cant able to test HTTP/3 in iOS 16
 
 
Q