The Kotlin Blog mentions that you can configure th...
# ktor
c
The Kotlin Blog mentions that you can configure the Ios HTTP engine like this:
HttpClient(Ios) {
engine {
configureSession {
networkServiceType = NSURLNetworkServiceTypeBackground
}
}
}
But when doing that, I get the follow compile error: Unresolved reference: NSURLNetworkServiceTypeBackground I am using 1.3.0.
Figured it out. I was missing the import:
Copy code
import platform.Foundation.NSURLNetworkServiceTypeBackground