I\'m trying to set up a download using NSURLSession that will continue in the background.
I have a singleton class called DownloadManager which bu
I had a similar issue, the application(_ application: UIApplication, handleEventsForBackgroundURLSession identifier: String, completionHandler: @escaping () -> Void) in my AppDelegate never was called when the app was downloading content in the background.
Turned out that I set the sharedContainerIdentifier in the URLSessionConfiguration.
After I removed this line out of the URLSessionConfiguration it all started to work.
sessionConfiguration.sharedContainerIdentifier = "my.shared.group"