Is `setAllowsCellularAccess` anymore relevant for ...
# multiplatform
m
Is
setAllowsCellularAccess
anymore relevant for networking with ktor on iOS KMM, for example, as seen in the sample code linked below? I’m using the default engine (https://ktor.io/docs/http-client-engines.html#default) and network requests seem to go through just fine on WiFi and cellular which makes me wonder if there’s some edge case that would require explicitly calling
setAllowsCellularAccess
with
true
? https://github.com/Kotlin/kmm-production-sample/blob/master/shared/src/iosMain/kotlin/com/github/jetbrains/rssreader/core/IosHttpClient.kt#L11
h
Not really, the default value is
true
. But of course, you could disable it: https://developer.apple.com/documentation/foundation/urlsessionconfiguration/1409406-allowscellularaccess
m
Right, I had that kind of thought that it probably defaults to
true
, just wasn’t sure as I didn’t find any docs for it
Thanks for clearing it up 👍