Daily iOS
App lifecycle and system

BGTaskScheduler

A requirement comes in: "every night while the user sleeps, clear the cache and prefetch new content." How would you register recurring work like that on iOS?

How would an interviewer hear this answer? You'll see whether they'd move on, dig in, or say no, and which sentences would trip you up. Your score doesn't change.
See the short answer

Register and schedule with BGTaskScheduler: BGAppRefreshTask for a short refresh (about 30 seconds) and BGProcessingTask for long work, where you can require power and network.

Share a question