How to sync audio file using swift

I have multiple audio files and i want to upload it to the server . Suppose i record audio offline and when internet is connected all files automatically sync to firebase storage .how I can do this ?

Replies

You should take a look at

URLSession
, and specifically its background session support. The URL Session Programming Guide covers uploads (in the Uploading Body Content section) and background sessions (in a few sections, most notably Understanding URL Session Concepts and Handling iOS Background Activity).

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"