IOS: server calls in the background often lead to a timeout

My application starts some server calls whenever it starts, now I am faced with some strange problem: when a push notification content_availablewakes up my application, calls are also made, but most often they are timed out.

Is this because the application is in the background? Is something configured incorrectly? I have activated background modes background fetchas well remote notifications. Did I miss something?

+4
source share
2 answers

Did I miss something?

, - , , , URLSessionConfiguration background(withIdentifier identifier: String). , , ; , .

+5

NSUrlSession . , NSURLConnection , . , - , .

+1

Source: https://habr.com/ru/post/1692409/


All Articles