nsurlsessiondownloadtask Questions

1

I need to make small downloads initiated when my app is in the background and woken up by Significant Location Changes. BUT Apples documentation of NSURLSessionConfiguration here: https://develope...

3

I am downloading the file in background using NSURLSession background session configuration. - (void)initBackgroundSession { self.backgroundSessionManager = [NSURLSession sessionWithConfiguratio...
Leotie asked 10/10, 2017 at 13:27

5

I am trying to download a number of files using NSURL background session with nsurlsessiontask. Everything works like charm when the app is running in debugging mode (when the device is connected t...
Mcalpine asked 13/2, 2017 at 10:43

1

I have a syncing functionality, where a series of downloads happens in the background. For that, I create a URLSession instance with background configuration as below: let config = URLSessionConf...
Selfsufficient asked 27/1, 2020 at 7:1

5

Solved

In latest apple introduce new NSURLSession in replace of NSURLConnection, so in there are different task , so what is the difference between NSURLSessionDataTask, NSURLSessionDownloadTask ? and in...

2

Solved

I'm downloading a video thanks to downloadTaskWithURL and I'm saving it to my gallery with this code : func saveVideoBis(fileStringURL:String){ print("saveVideoBis"); let url = NSURL(string: ...
Edina asked 19/2, 2016 at 11:2

4

Solved

I want to display file download progress (how many bytes are received) of particular file. It works fine with the NSURLSessionDownloadTask .My question is I want to achieve the same with the NSURLS...

1

Ok, I have succeeded in downloading various m4a files as well as removing them via URLSession. My problem is in the final "completion" function of the URLSessionDownloadDelegate requirement, I some...
Litalitany asked 1/7, 2017 at 19:6

2

Solved

I have a NSURLSessionDownloadTask with a backgroundSessionConfigurationWithIdentifier. When I lock the screen, this exception occurs: Error Domain = NSPOSIXErrorDomain Code = 1 "The operation ...
Philippine asked 7/7, 2015 at 5:4

5

Originially I thought that if a NSURLSessionDownloadTask finishes successfully URLSession:downloadTask:didFinishDownloadingToURL: method will get called, if it fails for some reason - URLSession:ta...

1

Solved

I am trying to download .ts files of a .m3u8 Video. I have created a download task for each of the .ts url and the session configuration HTTPMaximumConnectionsPerHost property set to 4: NSURLSessi...

4

Solved

I am using NSURLSession to download some mp3 files and store them in the device. Everything works fine but sometimes out of the blue, the app crashes and i get this weird error saying NSURLErrorDom...
Mendiola asked 8/10, 2014 at 19:49

0

I created subclass of UNNotificationServiceExtension to show remote attachment in notification. Randomly, attachment doesn't show. Issue is hard to reproduce, but some users reported, that after r...

1

Solved

In the comments of this answer I was having a discussion about backgroundTasks which eventually led to: Use backgroundTasks for anything that isn't related to download/upload. For upload/download ...
Semiconductor asked 20/7, 2017 at 15:48

3

Solved

I have implemented NSURLSession for downloading fairly large files from our servers. Now as long as I'm working in foreground or background and go back to the app the transactions are working and g...
Belldame asked 9/8, 2015 at 12:22

1

I’m trying to download a series of files from server to iOS app, with the intent that the download of these files happen even when the App is in the background mode. I'm using background transfer ...

2

Solved

I have requirement to download files in serial order. Currently I am able to do that while app is in foreground. Following is the logic I have used. Create all tasks for downloading. Resume one...

1

Solved

I'm using URLSession and downloadTask to download a file in the foreground. The download is much slower than expected. Other posts I found address the issue for background tasks. let config = URLS...
Chaiken asked 9/1, 2017 at 11:53

2

At first start of app I want to download all files from server and I want to continue in downloading even when user leaves app (it's not in foreground). The files I need to download are thumbnails,...

3

Solved

iOS 10 is going to be released soon so it worth to test applications for compatibility with it. During such test we've discovered that our app can't resume background downloads on iOS10. Code that ...
Boggs asked 6/9, 2016 at 10:4

1

I am creating a background session using this code... let configuration = URLSessionConfiguration.background(withIdentifier: UUID().uuidString) configuration.sessionSendsLaunchEvents = true c...

2

I am trying to update the user's location on the backoffice even while the app is in backgound, so I trigger a location update calling the following php script: -(void)locateUserAtLocation:(CLLoca...
Bartizan asked 13/5, 2014 at 11:53

2

Solved

NSURLSession Delegate method URLSessionDidFinishEventsForBackgroundURLSession is not Calling ? I already enabled the Background Modes in project capabilities settings. Here is the code AppDele...

4

I've enabled Background Modes with remote-notification tasks to download a small file (100kb) in background when the app receives a push notification. I've configured the download Session using N...

1

I'm using NSURLSessionDownloadTask to download some .mov files from a web and storing them in my app. Now what I'd like to achieve is to download ALL files of certain type (in this case .mov) a...
Joaniejoann asked 15/3, 2016 at 17:25

© 2022 - 2024 — McMap. All rights reserved.