Hi,
I'm building a framework that creates a URLSession with a backgroundTransfer configuration. We have settings that allow our callers to switch settings on our session.
When these settings change, we proceed to invalidate the session, wait for the delegate callback (session:didInvalidateWithError:) and proceed to recreate the session with the new settings within that callback.
I'm trying to write a unit test to test this code and I see that it's not working. I keep getting messages in the console that a background session already exists with that identifier. I've tried nilling out my reference to the session, dispatch asyncing and dispatch_after for the recreation calls.
Is it just not possible to change the settings of a background transfer session's URLSessionConfiguration?
Thanks