Flagsmith / Flagsmith/flagsmith-ios-client

Can we allow customers to provide their own URLSessionConfiguration class

Open
#94 0 comments 0 reactions 1 assignee Claimed by @gazreese View on GitHub
Dominant language
Swift
Stars
16
Forks
17
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.