How to schedule background tasks?

How can I schedule background tasks to run every X minutes?


Options considered:

- Background fetch task. Problem is there it seems there is no guarantee that my task is going to run every X minutes. It is up to the OS to decice if it runs or not.


- Remote notifications. Can we wake up the app and run a background task when receiving a remote notification? Or does the user have to open the notification in order for the app to wake up and run a task? If that is possible, could it be a silent notification where the user isn't even aware that he received a notification and that his app is running stuff in the background?


Any other options?


Thank you

Replies

How can I schedule background tasks to run every X minutes?

What’s a rough value for X?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"