mapbox / mapbox/mapbox-maps-ios
Allow Library user to specify a NSURLSessionConfiguration
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 601
- Forks
- 196
- PR merge metrics
- No merged PRs in 30d
Description
## New Feature
Add the possibility to provide an NSURLSessionConfiguration to the iOS version of the Mapbox SDK.
## Why
Since the removal of the background enabled NSURLSessionConfiguration related to https://github.com/mapbox/mapbox-sdk-common/issues/936, it is now impossible to download Tilepacks while the app is in the background. Since tilepacks can be fairly large, this results in users having to keep the app open for a prolonged period of time to complete downloads.
While it is understandable that this is not turn on by default in the library, it would be of great help if at least an NSURLSessionConfiguration could be passed in. That way, apps using the library could still allow downloads in the background using `NSURLSessionConfiguration.backgroundSessionConfigurationWithIdentifier:` and deal with the shortcomings of this API themselves.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the iOS tilepack download entry point to where its NSURLSession is created, then inspect how callers currently configure downloads. Confirm the public API surface and relevant tests before making changes; done means an app can provide an NSURLSessionConfiguration for tilepack downloads, including a background configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile, networking
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100