Matti MK
10/26/2021, 9:56 AMsetAllowsCellularAccess
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#L11hfhbd
10/26/2021, 10:14 AMtrue
. But of course, you could disable it:
https://developer.apple.com/documentation/foundation/urlsessionconfiguration/1409406-allowscellularaccessMatti MK
10/26/2021, 10:18 AMtrue
, just wasn’t sure as I didn’t find any docs for itMatti MK
10/26/2021, 10:19 AM