When to call completionHandler in application:performFetchWithCompletionHandler: when Background Fetch is async?
问题 I have an app that fetches content in the background with the help of Background Fetch. So if a Background Fetch should take place my application:performFetchWithCompletionHandler: method is called. In this method I use NSURLConnection to fetch content asynchronous. In my current implementation I only start the request and then call the completionHandler with UIBackgroundFetchResultNewData . I know that this cannot be right. So my question is, how do I correctly call the completionHandler