An open API service indexing awesome lists of open source software.

https://github.com/wibosco/backgroundtransfer-example

An example project looking at how to implement background transfers on iOS
https://github.com/wibosco/backgroundtransfer-example

background-transfer ios networking swift thecatapi urlsession

Last synced: 11 months ago
JSON representation

An example project looking at how to implement background transfers on iOS

Awesome Lists containing this project

README

          

[![Build](https://github.com/wibosco/BackgroundTransfer-Example/actions/workflows/swift.yml/badge.svg)](https://github.com/wibosco/BackgroundTransfer-Example/actions/workflows/swift.yml)
Swift
[![License](http://img.shields.io/badge/License-MIT-green.svg?style=flat)](https://github.com/wibosco/BackgroundTransfer-Example/blob/main/LICENSE)

# BackgroundTransfer-Example
An example project looking at how to implement background transfers on iOS as shown in this article - https://williamboles.com/keeping-things-going-when-the-user-leaves-with-urlsession-and-background-transfers/

In order to run this project, you will need to register with [TheCatAPI](https://thecatapi.com/) to get a `x-api-key` token to access TheCatAPI's API (which the project uses to get its example content). Once you have your `x-api-key`, add it to the project as the value of the `APIKey` property in the `NetworkService` class and the project should now run. If you have any trouble getting the project to run, please create an issue.