Page 1 of 1

Feature-request: use http/2 for map download and browsing

Posted: Wed Apr 15, 2020 3:53 pm
by KingFu
Hi,
Alpinequest is using http/1.1 for downloading tile images from map servers. Either on browsing of downloading an area.
http/2 is supported by more and more map servers and it really allows much faster tile downloading specially on slow connections.
You can see a demo on this page https://http2.akamai.com/demo using any modern browser.

So please using http/2 by default whenever enabled.

Re: Feature-request: use http/2 for map download and browsing

Posted: Thu Apr 16, 2020 8:15 am
by Psyberia-Support
You're right, it would be better.
However AlpineQuest uses the stock Android API http client, and right now unfortunately it doesn't support HTTP 2.
The only way would be to use a third party library, which is not planned for now.

Re: Feature-request: use http/2 for map download and browsing

Posted: Thu Apr 16, 2020 3:16 pm
by KingFu
Can you add Okhttp as an option?
https://github.com/square/okhttp

You can allow it to be enabled as experimental feature on settings until you feel it's stable enough.

Re: Feature-request: use http/2 for map download and browsing

Posted: Thu Apr 16, 2020 5:34 pm
by Psyberia-Support
This is what I meant by third party libraries.
OkHttp have various requirements that will reduce compatibility an increase the app size of at least 50%.
It will also require some work and a lot of testing. And this for each new OkHttp release or its dependencies. So right now unfortunately I don't have the time...
But I add this in the wanted features list, because the support itself would be good.