Upload images and videos when app is closed

In our app we give the option to upload loads of images and photos at the same time. The problem is, when the app is closed the uploads fail of course. So my question is, can I make a background task so the images/videos are uploaded even when the app is closed. Or can I do it like facebook, where the image seems to be uploaded in a notification +track the progress in that push notification.

Any tips/explanations are welcome. New to any kind of background tasks so all help/explanations are welcome. We’re here to learn after all.