https://kotlinlang.org logo
Title
j

Jan

02/01/2022, 5:28 PM
I'm using ktor on android and using it over a Wifi connection works fine but over mobile data a simple GET request returning json takes 10+ seconds (I measured 10mbit/s). Is that somehow my fault?
tested on okhttp and android engines
m

manueldidonna

02/01/2022, 6:16 PM
I used ktor in many android apps with the okhttp engine, I never had that kind of issues
a

Aleksei Tirman [JB]

02/02/2022, 7:41 AM
If you use OkHttp client or HttpURLConnection do you get a different result?
j

Jan

02/02/2022, 4:17 PM
Same issue with raw Okhttp, but I see I only have to problem on app-startup after that, everything is smooth