TelemetryDeck / SwiftSDK

Swift SDK for TelemetryDeck, a privacy-conscious analytics service for apps and websites.
https://telemetrydeck.com/
Other
149 stars 30 forks source link

Allow to change `URLSessionConfiguration` for uploading signals #102

Open mrackwitz opened 1 year ago

mrackwitz commented 1 year ago

Motivation

Use a background URL session via URLSessionConfiguration.background(withIdentifier:).

Status

I haven't gotten around yet to put this into practice. PR'ing this already for visibility and bike-shedding around design decisions.

Todos:

winsmith commented 1 year ago

What's the status of this?

mrackwitz commented 1 year ago

We haven't shipped TelemetrySDK yet, as blocking the main thread on initialization, as described in #101, is a red flag for our specific use case. I've been wanting to look further into resolving this, but I didn't get around to it yet.

winsmith commented 1 year ago

Ah I see! I'll leave this open then, and will have a look myself at #101 when time allows.