0

I am working on Swift and I am new to Apple Watch Programming. I am making a demo app in iOS i.e displaying images on feed. To display the images, I have to parse a service.

I know how to implement it for iPhone, but I don’t understand how to implement it for Apple Watch, and even I don't know that it is possible on Apple Watch or not???

If it is not possible then how should I show the data from a service in Apple Watch??

Is there any other way to display the data in Apple Watch?

Can any one explain me about this clearly, please...

Thanks in advance.

Seyed Parsa Neshaei
  • 3,470
  • 18
  • 30
Ramakrishna
  • 712
  • 8
  • 26

2 Answers2

0

To consume web services on the Apple Watch you will need to use the NSURLSession API. You can also use an easy to use, popular framework called AFNetworking. This will make the requests and parse the data for you

Kyle Redfearn
  • 2,172
  • 16
  • 34
0

I can't really explain why Alamofire is returning this error. It did the same for me. But it was better, since the WatchOS guidelines say that you can't do long operation on the watch since it's life could be short.

I built a bridge around WatchConnectivity where I send message and I reply with the response asynchronously. The only difference is that you need the app on the iPhone is running (not terminated, essentially)

Luca D'Alberti
  • 4,749
  • 3
  • 25
  • 45