flagsmith-ios-client icon indicating copy to clipboard operation
flagsmith-ios-client copied to clipboard

Can we allow customers to provide their own URLSessionConfiguration class

Open gazreese opened this issue 4 months ago • 0 comments

The Android SDK has the following, which simplifies things somewhat: https://github.com/Flagsmith/flagsmith-kotlin-android-client/blob/main/FlagsmithClient/src/main/java/com/flagsmith/FlagsmithCacheConfig.kt

The iOS SDK has similar here: https://github.com/Flagsmith/flagsmith-ios-client/blob/702d5a53b25f8149a03c10d2f9985de2f22df2f2/FlagsmithClient/Classes/Flagsmith.swift#L398

I'm sure these are similar by intention. Is there a way to expose or inject a URLSessionConfiguration class? Specifically the customer was asking to reduce the request timeout from 60s to 1s. 60s does seem excessive.

Maybe if the URLSessionConfiguration class injection could be problematic we could expose the request timeout (and anything else that's useful) on both.

gazreese avatar Oct 07 '25 11:10 gazreese