Question:
the docs said, that i have to register a background-task only once with:
BGTaskScheduler registerForTaskWithIdentifier
This is okay and it's working fine.
But:
When i reboot my iPhone do I have to register my background-task again or is the registration is valid "forever" (until I delete my app)?
In my tests I get an error after rebooting my device and run my app the first time after rebooting..
This is in the logs:
objc_exception_throw + 56 (objc-exception.mm:356)
2 Foundation 0x1a9102a50 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 184 (NSException.m:242)
3 BackgroundTasks 0x213ad3250 -[BGTaskScheduler _unsafe_registerForTaskWithIdentifier:usingQueue:launchHandler:] + 304 (BGTaskScheduler.m:0)
4 BackgroundTasks 0x213ad3008 -[BGTaskScheduler registerForTaskWithIdentifier:usingQueue:launchHandler:] + 128 (BGTaskScheduler.m:171)