⏰Is it possible if I want my app to upload data to firebase by itself even though the app's closing?

I want my app to upload daily data by itself, even though it's closing (fully closed) or in the background.
I have tried to use the timer by a specific date but it does not work.😭

P.S. I use swift app life cycle to develop my project

Replies

You can do a lot when app is in background or when app resumes:

https://developer.apple.com/documentation/foundation/url_loading_system/downloading_files_in_the_background