initialize

Registers all task IDs currently in TaskRegistry with BGTaskScheduler, replays any persisted events from the last session, and restores in-progress chains.

Must be called from AppDelegate before the app finishes launching.