Can I schedule a task weekly?

I was wondering if it was possible to have an app perform an action periodically.


This period might be every day, week, or month - it hasn't been decided yet. The task would send a content availability check to the server alongside a bit of usage data.

The documentation for Background Execution mentions "Background fetch - The app regularly downloads and processes small amounts of content from the network.", but I'm unclear on what the limitations of this are (any scheduling limitations, app 'genre' limitations, etc.).

Replies

I was wondering if it was possible to have an app perform an action periodically.

Not in general.

This period might be every day, week, or month - it hasn't been decided yet. The task would send a content availability check to the server alongside a bit of usage data.

It sounds like your best option here is to move that check to a server and then have the server issue a push notification when new content is available. This is exactly what ‘silent’ push notifications were designed for.

Share and Enjoy

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

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