Is your feature request related to a problem? Please describe.
We are unable to configure the URLSession beyond the default settings, see:
|
private lazy var session = URLSession(configuration: URLSessionConfiguration.default, delegate: nil, delegateQueue: nil) |
This restricts our ability to create background URLSessions with custom configurations, particularly concerning setting session identifiers and shared container identifiers.
Describe the solution you'd like
We propose updating the BoxNetworkAgent to create the URLSession based on some sort of configuration. One way could be to extend the BoxSDKConfiguration to accept a URLSessionConfiguration.
Describe alternatives you've considered
There isn't really an alternative. Since we're implementing a File Provider extension, we require the URLSessions to be configured as a background session.
Additional context
We are willing to contribute to implementing this feature and are open to creating a pull request. However, we would appreciate guidance from you to ensure the feature aligns with your best practices for your library.
Is your feature request related to a problem? Please describe.
We are unable to configure the
URLSessionbeyond the default settings, see:box-ios-sdk/Sources/Network/BoxNetworkAgent.swift
Line 61 in a395222
This restricts our ability to create background
URLSessions with custom configurations, particularly concerning setting session identifiers and shared container identifiers.Describe the solution you'd like
We propose updating the
BoxNetworkAgentto create theURLSessionbased on some sort of configuration. One way could be to extend theBoxSDKConfigurationto accept aURLSessionConfiguration.Describe alternatives you've considered
There isn't really an alternative. Since we're implementing a File Provider extension, we require the
URLSessions to be configured as a background session.Additional context
We are willing to contribute to implementing this feature and are open to creating a pull request. However, we would appreciate guidance from you to ensure the feature aligns with your best practices for your library.