How To Sync Data Periodically?

I want to run a task every 30~60 minutes to sync data from my server.
Ive seen the TaskManager in the documentation:
https://docs.expo.io/versions/latest/sdk/task-manager/

It allows to run tasks while the app is in the background.
My question is what does it mean background?
I need the task to run all the time will it suffice?
If not how can i sync data from the server when the app is closed?