http icon indicating copy to clipboard operation
http copied to clipboard

Feature Request: Add HTTP/2 support on Android

Open CodeWithOz opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. I'd like to take advantage of http/2 for servers that have it enabled. There's an Android security concern that prevented the chromium team from implementing http/2 for the webview, this is the thread. Is there a way to work around this problem? Thanks.

Describe the solution you'd like A way to ensure that the app uses http/2 for requests when the server supports it.

Describe alternatives you've considered None really, I haven't found a workaround.

Additional context N/A

CodeWithOz avatar Oct 26 '21 09:10 CodeWithOz

For iOS, the underlying HTTP engine is URLSession which will automatically use HTTP/2. So we're good on iOS from what I can tell.

For Android, this plugin is using HttpUrlConnection, which does not support HTTP/2. Definitely a bummer. If I switch the underlying engine to be OkHttp instead, then we could; but that's a pretty big change and adds in a dependency. I'll mark this as a feature request and leave it open. But I don't have any immediate plans to support this on Android

thomasvidas avatar Nov 13 '21 18:11 thomasvidas