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.
Related
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.
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 would like to allow users to send me emails directly through my app, and am wondering if this is possible to do?
Your best and most simple way is to bring up the send email view (or even mailto:) with your app specific email to receive comments and requests on.
Another option is to design a web page that has a couple of fields for information and then hooking it up with PHP.
Just about anything works, it all depends on how you balance user experience and easy of implementation.
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 3 years ago.
Improve this question
what is the correct https link to get JSON data for all the projects at once?
the current link to our dashboard is like this:
https://company.atlassian.net/secure/Dashboard.jspa
Would like to get all of the projects then use another https call to get all the issues for all the projects. Then after that of course look at assignees etc etc. Looking to collect this data to put into an iOS app for R&D purposes.
I am coming at this blind but I have no idea if I also need someone to set up permissions to do this or something. Never used this API before so just doing some discovery here.
You have to speak with the API :)
https://docs.atlassian.com/jira/REST/latest/
Let me know if you need further help.
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...)
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 4 years ago.
Improve this question
I was wondering what would be the best strategy to implement a badges system using asp.net mvc. The one that stackoverflow has is pretty interesting. What do you suggest?
I guess I need to clarify the question a bit. The problem would be the different criteria for earning every badges. How do make that logic extensible?
I'd do it purely in T-SQL, and set up a SQL job that runs periodically (Jeff did it using C#, and has a goofy system where it runs the process based on a page request).
Basicly, in your SQL Job, scan your member tables and calculate if anyone is qualified for a badge, if so, update the badge table(s).
Then in the front end, do a query to retrieve new badges for a member on each request.