Questions tagged [afnetworking-3]

AFNetworking is a networking library for iOS and macOS.

AFNetworking is a networking library for iOS and macOS.

Related

261 questions
3
votes
3 answers

How to use AFNetworking 3.x to consume data from SOAP webservice in ios, objective-C

I'm working on a app that consume data from a web service.I tried to consume data from webservice using afnetworking 3.x. I have stucked in some place.don't know wher to go from here.hope your help. NSString *mainapiKey = [NSString…
Jobs
  • 259
  • 2
  • 6
  • 19
2
votes
0 answers

AFNetworking 3 or 4.01 migration

I was on AFnetworging 2.0.6 and I would like to migrate to 3 or 4.0.1. I have problem with this part of code I know AFHTTPRequestOperation it's not reuse on version 3 or 4. and I have some error here. Can you help me please. -…
2
votes
1 answer

How to avoid Memory Leaks due to AFNetworking in swift

Im using AFNetworking in my project. When I try to find the memory leaks using instruments, its showing AFNetworking as reasons for memory leak. I'm creating a model class and within that class I'm calling the AFNetworking. Call to API is done from…
2
votes
1 answer

Why am I getting 'Content-Length' with AFNetworking but not with Alamofire?

In Swift (Alamofire) I do this code: let url = URL(string: "http://cdn.thechivemobile.com.edgesuite.net/v5/chive/20117177/20117177_2_600_366.gif")! let task = Alamofire.request(url) task.downloadProgress() { (progress) in print("***…
Rich Schonthal
  • 472
  • 2
  • 11
2
votes
3 answers

iOS AFNetwork 3.0: Is there a faster way to send multiple API requests and wait until all of it is finished?

I am currently using the following method to send GET API requests. This method works, but I was wondering if there is a faster way. All I need regarding requirements is to know when all of the Deleted mail has been synced. Any tips or suggestions…
Curt Rand
  • 953
  • 1
  • 6
  • 24
2
votes
0 answers

Key Management: Hardcode Encryption Key In AFNetworkingReachibilityManager

We did review our app for security testing and response we got issue in AFNetworkingReachbilityManager class for Hardcode Encryption Key. Any Idea how to fix this security issue. Here is the code where they point out hardcode encryption key. +…
Zafar Ali
  • 29
  • 5
2
votes
1 answer

Cache of AFNetworking downloading file

I'm downloading files using AFNetWorking.Its works well. And I stored files in "/Documents ".But the app downloaded again when I called this request again. Is there any solutions could cached these files like NSURLCache? When I request again and AF…
Y.Kay
  • 31
  • 3
2
votes
1 answer

Invalid bitcode version error after updating AFNetworking

So I updated AFNetworking in my project from v2.0 to v3.1 but ever since that I am getting 'invalid bitcode version (Producer: '802.0.38.0_0' Reader: '800.0.42.1_0')'. The archive was generated successfully multiple times in Xcode 8.2 before the…
2
votes
1 answer

How to set ticket with AFHTTPSessionOperation or AFHTTPSessionManager?

Does anyone know how to set ticket inside AFHTTPSessionOperation? This is the previous call using AFNetworking framework 1.0 NSURLRequest* request = [self.myClient requestWithMethod:@"POST" path:[NSString stringWithFormat:@"%@/%@", controller,…
JIANG
  • 1
  • 1
  • 12
  • 28
2
votes
0 answers

Request Adapter Interceptor Same thing in AFNetworking

I am try to change request before and After response call of AfNetworking. I have done in Alamofire using Request Adapter. Can any one help me same thing on AFNetworking. Below link which explains clearly to for Alamofire 3 and…
sunil
  • 60
  • 8
2
votes
1 answer

IOS - Basic Authentication with a REST API - SSL - AFNetworking 3.0

Everything works great with the code, the problem is it says authentication failed, though the username and password is 100% correct, so not sure if there is a way to pass the login and the password and get the user authenticated NSString…
user580950
  • 3,178
  • 12
  • 42
  • 80
2
votes
1 answer

How to set outputStream in AFNetworking 3.0

I had an option in older AFNetworking to set outputStream with: AFHTTPRequestOperation* requestOperation = [[AFHTTPRequestOperation alloc] initWithRequest:request]; requestOperation.outputStream = [NSOutputStream outputStreamToFileAtPath:somePath…
Vladyslav Zavalykhatko
  • 8,954
  • 4
  • 49
  • 84
2
votes
3 answers

AFNetworking 3 issue

In AFNetworking 3 for invalid SSL certificate I used validatesCertificateChain = false , but now it seems that this field was removed and I can't make requests to my server. Here is class for requests: import UIKit import AFNetworking class…
Paul T.
  • 4,226
  • 6
  • 39
  • 84
2
votes
0 answers

Refresh access token automatically using AFOAuth2Manager

I have a server with OAuth 2.0 implemented for issuing access and refresh tokens. The client for this server is an iOS App written in Objective-C. I am currently using AFNetworking 3.0 for HTTP requests and AFOAuth2Manager to handle authorization. I…
flizana
  • 529
  • 6
  • 26
2
votes
3 answers

How to access a third party framework from My.Framework?

Steps to understand my problem: 1) I created a framework (My.framework) 2) Added My.framework as a subproject to MyApp.xcodeproj. 3) Then I ran cocoapod for adding AFNetworking on MyApp.xcodeproj. 4) Now, I open MyApp.xcworkspace. 5) While trying…
jeet.chanchawat
  • 5,228
  • 5
  • 31
  • 57
1 2
3
17 18