2

Is there any best-practice how to use Alamofire with Watchkit to make simple HTTP requests?

I am using the latest Xcode 6.3 beta

fabian
  • 5,433
  • 10
  • 61
  • 92
  • If you want to make simple HTTP requests NSURLConnection or NSURLSession are more than enough. They're lightweight and simple. Also, I'd like to refer you to this answer which suggests that you shouldn't perform any HTTP requests in a WatchKit extension, let alone complex and long running ones: http://stackoverflow.com/a/28931587/832065 – JonasG Mar 23 '15 at 21:59
  • Don't use Alamofire? Is it really that difficult to use NSURLSession..... – TheCodingArt Oct 14 '15 at 00:56

1 Answers1

0

I guess you are looking an example- weather app in watchkit practice - as follows:

Part 1:

Part 2:

Here are some links that I consider it might be useful for you or for others.

Alamofire GitHub website:

There are a lot of useful materials for Alamofire in the following links

Apart from them, the following great explanation could be useful

Community
  • 1
  • 1
casillas
  • 16,351
  • 19
  • 115
  • 215