nsurlsessiontask Questions
8
Solved
In my iOS app, I am using NSURLSessionTask to download json data to my app. I discovered that when I call the url directly from the browser, I get an up to date json and when it's called from withi...
Kuban asked 20/6, 2014 at 13:29
3
Solved
I have this same question as was asked and answered here: How to get data to return from NSURLSessionDataTask
The difference: How can I do this in Swift? I do not know Objective C at all so trying...
Kissable asked 7/11, 2014 at 5:29
2
Solved
In this example I kick off 100 NSURLSessionDataTask at default priority but then set the last one to high priority. However it seems to have no effect at all as the last task still ends up running ...
Reverse asked 1/6, 2016 at 6:56
1
Solved
I am getting the following crash on crashlytics which I can not reproduce on my device
Fatal Exception: NSGenericException
Task created in a session that has been invalidated
at the following li...
Duke asked 11/3, 2020 at 12:43
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...
Fantastically asked 16/12, 2013 at 6:42
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...
Priest asked 7/5, 2014 at 9:37
1
Scenario is taking the app to background and foreground multiple times when its uploading is in progress,didCompleteWithError: method is called while taking app to foreground with error parameter i...
Hellenism asked 7/7, 2015 at 7:40
1
Solved
I started to use NSURLSession by avoiding NSURLConnection now a days as it's a new and elegant API provided by Apple. Previously, I used to put call NSURLRequest in GCD block to execute it in backg...
Concertmaster asked 31/7, 2015 at 12:28
1
There are couple of challenges I am facing with streaming request using AFNetworking 2.0.
I want to upload lot of files (~50MB) to server and the request HAVE TO BE STREAMING. (otherwise app will ...
Rasmussen asked 28/2, 2014 at 10:55
1
Solved
I'd like to know how to "unit test" HTTP requests and responses using NSURLSession. Right now, my completion block code does not get called when running as a unit test. However, when the same code ...
Immersionism asked 14/5, 2014 at 14:26
1
I am working on a BLE application that will always run in background. It gets health related data from the BLE peripheral and will upload the data to the server in realtime. I am using NSURLSession...
Brobdingnagian asked 8/4, 2014 at 5:35
1
© 2022 - 2024 — McMap. All rights reserved.