iOS network module architecture [closed] - ios

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
new to iOS
My app has to communicate with a backend java server to handle login , download image data etc. I'm confused on how to implement the network module. Should there be a separate network module for each view controller ? Or should there be a central network module to handle all the calls ? I know its a vague question but I don't know where else to ask.

You can check below mentioned link,
AFNetworking Crash Course
AFNetworking Document/Source

Hi you can try with this
https://github.com/tonymillion/Reachability
thanks

Use ASIHTTPRequest can easily to implement network action (like GET, POST, download, upload, etc...)

Related

I want to use network class for handling success and errors of servers, which is the best 3rd party for this? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 3 years ago.
Improve this question
In flutter what's the best library for network?
I am new to Flutter previously I used Alamofire and AFNetworking in Swift.
You can use Dio. Working with this is pretty simple. And it also has support for interceptors, just in case you need to change something or log responses and also the transformers if you want to transform request/response before they are sent/receieved to/from the server.

Service worker, how it work? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I have a form. And I want to make the page resilient to network lashes.
Outages.
So if you press submit but you have no network, it should be cached somewhere and sent later.
How can I do that? Can Service Work help me with it?
You can deffer failed requests using service workers, yes.
I recommend to use Workbox and more specificly the BackgroundSync Plugin to deffer failed requests when the network is back.
To do this, you may be familiar with the new fetch API

How to make Wi-Fi file sharing in Xcode [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to make Wi-Fi file sharing in my app, that UIViewController will have http address which user will can to write in desktop browser and user will can pass data to application over Wi-Fi. How can I make it? What are any libraries for it? I use Swift 2.0 and Xcode 7. Like this
This is a broad question, here as a broad answer.
You could try using the Multipeer Connectivity Framework that was introduced in iOS7.
This essentially wraps zero-configuration networking so you don't need to worry about IP addresses.

mobile app make the http request separate or together [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Since most mobile apps need to communicate with server, thus they need handle http request in the app. My question is that, is it better to put all requests in one controller or separate to different controller?
For example, I have a SignInViewController and ContactsViewController. Both of them need to get some data or post some data to server. I can either handle requests in each ViewControllers, or put them in one ServerController. Which is better or standard way?
Thanks
I would and have used a separate object similar to what you describe as the ServerController. It depends on the situation but I have found these are easier to work with if they are not singletons so that you can manage state, progress, etc. of each of your HTTP requests independently.

Uploading image as profile picture [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
My app has to integrate uploading image to set it as profile picture. The thing is all the images has to be stored in web services.
As web service has not been yet created. what is the best way to store images for temporary purpose so that i can integrate it easily when i have been provided with the backend.Sample tutorials can be helpful
My best idea is to use FTWCache (https://github.com/FTW/FTWCache) and cache it localy. Later, using webservice, you can still use your already written cache mechanism to implement NSURLConnection with caching. Profit! ;-)

Resources