afnetworking-2 Questions

16

Solved

Trying to step into AFNetworking code generates following warning: [Project Name] was compiled with optimization - stepping may behave oddly; variables may not be available. And of course I'm no...
Zincograph asked 24/9, 2015 at 23:32

10

Is there a way to log each request / response using Alamofire (something similar to AFNetworkActivityLogger) ? I am aware of Printable, DebugPrintable and Output (cURL) but they are not quite what...
Spontaneous asked 4/11, 2014 at 13:32

2

Solved

I'm seeing the following crash report, but it's not reproducible. How would I go about debugging it? Is this an AFNetworking issue? I'm using version 2.4.1. Crashed: com.apple.NSURLSession-work EX...
Histolysis asked 9/9, 2015 at 23:40

15

Solved

I'm a newbie in obj-c and have been using asihttp for some of my projects. When doing a post request in asihttp its done this way. ASIFormDataRequest *request = [ASIFormDataRequest requestWithUR...
Inclusion asked 1/10, 2011 at 22:8

8

Solved

Here is my podfile I use in the project: source 'https://github.com/CocoaPods/Specs.git' platform :ios, '9.0' use_frameworks! pod 'AFNetworking', '~> 2.0' pod 'GoogleMaps' pod 'MONActivityIndi...
Daliadalila asked 24/11, 2015 at 12:21

2

Solved

While updating my application to support Background App Refresh I ran into problem with AFNetworking. I am getting NSPOSIXErrorDomain Code=53 "Software caused connection abort". The problem seems...

9

Solved

We’ve been having a hard time securing our app’s network connections with SSL using AFNetworking 2.5.0. We use a self-signed certificate authority and implemented a custom security policy using pi...
Embolectomy asked 6/1, 2015 at 22:22

3

Solved

Update After posting this as an issue to the AFNetworking repo, turns out this is in fact a usage issue on my part. Per the response to my issue: NSURLSession retains its delegate (i.e. AFURLSe...
Gathering asked 22/6, 2014 at 20:53

4

Solved

I'm writing a small iOS client for a server protected with OAuth2. I'm wondering if is it possible using AFOAuth2Manager [here] auto-refreshing the expired token. The idea is that the logic for r...
Hedy asked 9/3, 2015 at 15:58

5

Solved

I had called an interface of Baidu to check id Number, however the value of Sex returned with sex = M, without "" around the M in JSON, when I use NSString in module to store it and then print the ...
Antisepticize asked 19/10, 2015 at 5:44

3

Solved

I'm confused due to lack of examples, so I did this in my appDelegate's didFinishLaunching: [[AFNetworkReachabilityManager sharedManager] startMonitoring]; bool isThere = [[AFNetworkReachabilityMa...
Hoad asked 16/4, 2014 at 17:27

4

our iOS app recently got rejected by Apple because it was not able to establish a valid connection to our server api. We are using a specially formatted user-agent to register the device token and ...
Corenecoreopsis asked 6/4, 2015 at 18:29

3

Solved

I do know how to do this, it's fairly simple. The problem is that it doesn't work. Here's the function I use to POST the data: - (void)updateWebsitesUsingParameters:(NSDictionary *)parameters; {...
Chrotoem asked 21/5, 2015 at 21:25

3

Solved

I have internet connection and can browsing with browser. Here is my codes to check Reachability with AFNetworking. - (BOOL)connected { return [AFNetworkReachabilityManager sharedManager].reacha...
Featureless asked 23/2, 2014 at 7:23

6

Solved

What's the correct way to code a multipart PUT request using AFNetworking on iOS? (still Objective-C, not Swift) I looked and seems like AFNetworking can do multipart POST but not PUT, what's the ...
Torsk asked 22/5, 2015 at 3:40

5

Solved

Im using AFNetworking to get JSON values from my iOS application i have tested my code to this link http://gdata.youtube.com/feeds/api/standardfeeds/most_popular?v=2&alt=json then my code works...
Moyna asked 19/7, 2014 at 12:31

3

Solved

I've been getting the following error when using the GET method to retrieve a file from a server: Error: Error Domain=NSCocoaErrorDomain Code=3840 "The operation couldn’t be completed. (Cocoa erro...
Encompass asked 23/9, 2014 at 2:54

5

Solved

I added directories AFNetworking and UIKit+AFNetworking to project manager. I use latest library 3.0.4 After I imported file AFNetworking.h in my class file .m. I found a lot examples how to make ...
Eddy asked 6/1, 2016 at 17:33

2

I am trying to use AFNetworking2.0 with new NSURLSession class to fetch some data. In particular I am interested in new HTTPMaximumConnectionsPerHost property of NSURLSessionConfiguration but unfor...
Hirohito asked 2/4, 2014 at 15:34

2

Solved

I'm trying to send a HTTP DELETE request to a RESTful Django web service from my iOS app. I use AFNetworking 2.0 (2.4). After analysing the AFHTTPREquestOperation in the success block of my API c...
Babs asked 5/8, 2014 at 14:9

8

Solved

I'm using this code to pull a simple JSON feed from a server: AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManager manager]; manager.responseSerializer = [AFJSONResponseSeriali...
Bowes asked 23/11, 2013 at 18:26

2

Solved

so I know that in the old AFNetworking this was possible using the AFHTTPClient, and I know that if I use AFHTTPRequestOperationManager I can set the queue's limit, but I can't make AFHTTPSessionMa...

3

So, I am using AFNetworking 2.0 (ObjC framework with Bridging-Header) to make some requests on a local server. I have followed a few tutorials to code it using Swift. This is the code: var success...
Marbles asked 16/6, 2014 at 16:36

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...

4

Solved

I am using AFURLSessionManager to create a new download task: AFURLSessionManager* manager = ... NSProgress* p = nil; NSURLSessionDownloadTask* downloadTask = [manager downloadTaskWithRequest:re...
Jard asked 2/10, 2013 at 19:19

© 2022 - 2024 — McMap. All rights reserved.