Is there a way to trigger a task every hour in iOS when the app is in both the foreground and background?

I have to trigger an API call at regular intervals like an hour when the app is in the foreground and background.

I saw that Android has a PeriodicWorkRequest method to do this kind of implementation.

Is there any workaround to implement the same in iOS?

Can you please help me with this?

Is there a way to trigger a task every hour in iOS when the app is in both the foreground and background?
 
 
Q