How to fetch data in background every hour in Swift even the app is terminated?
<p>I am making an app that provides functionality to fetch data every hour. It fetches data even when the app terminates. How can I implement this functionality?</p>

<p>After a lot searching I found background fetching using performFetchWithCompletionHandler. Will this function work even if my app terminates? What I mean is if my app is in closed or terminated state, can I call this function automatically?</p>