We use BGProcessingTaskRequest to perform tasks in the background in our app. We use URLSession.shared to make a http request to the server and retrieve data, then stored data in Core Data.
To force the execution of a background task, we use [[BGTaskScheduler sharedScheduler] _simulateLaunchForTaskWithIdentifier:@"TASK_IDENTIFIER"]. After triggering the background task, we press the home button to put the app in the background. However, we noticed that URLSession.shared dataTask did not receive a response when the data with large size, and the background task stopped. If the app back to the foreground the request work again.
We would like to know how to properly use BGProcessingTaskRequest with URLSession and Core Data.
We referred to the following article for guidance: https://developer.apple.com/documentation/backgroundtasks/refreshing_and_maintaining_your_app_using_background_tasks
Post
Replies
Boosts
Views
Activity
Our app has implemented the call directory extension. When we modify the order or switch on/off in call blocking and identification, there is no change reflected within the Phone app. We need to relaunch the Phone app for the changes to take effect correctly.
Is this a bug in iOS 17?