I am working on adding some background processing.
I register for background tasks and then schedule a single task.
I am seeing the following results:
- Nothing fails or throws during the setup
- The task doesn’t execute
- The pending tasks list is empty.
I have:
- Added the Background processing capability
- Added the
Permitted background task scheduler identifiers
into the Info.plist beginBackgroundMonitoring()
is called during app launch- Tested exclusively on a real device
- Tried running
e -l objc -- (void)[[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@"com.myApp.task"]
which also doesn’t trigger it
<key>UIBackgroundModes</key>
<array>
<string>processing</string>
</array>
<key>BGTaskSchedulerPermittedIdentifiers</key>
<array>
<string>com.myApp.task</string>
</array>
I see the following in the logs: