-
Notifications
You must be signed in to change notification settings - Fork 1
Developer Notes
Garrett Johnson edited this page May 14, 2024
·
4 revisions
Testing must be performed on a real device.
- Start the app
- Send app to background to schedule tasks
- Pause execution
- Paste launch command into the debugger
- For maintenance:
e -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@"net.devsci.den.maintenance"] - For refresh:
e -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@"net.devsci.den.refresh"]
- For maintenance:
Further reading: https://developer.apple.com/documentation/backgroundtasks/starting-and-terminating-tasks-during-development