1

For Objective-C, is it possible to send notification from iPhone to Apple Watch? Is the reverse possible?

If yes, please guide me by some code or link.

Pang
  • 9,564
  • 146
  • 81
  • 122
Krutarth Patel
  • 3,407
  • 6
  • 27
  • 54
  • Yes. Pretty much all the watch does at this point is send & receive data from related phone apps. https://developer.apple.com/watchkit/ – mc01 Apr 15 '15 at 04:22
  • i done with image and label.but i want like timer value or any value send to iwatch to iphone as local notification. – Krutarth Patel Apr 15 '15 at 04:26

1 Answers1

3

WKInterfaceController has openParentApplication:reply: method that can send some user info to parent app and get a response. Also you can use darwin notifications to send messages from iPhone to watch and reverse. Look at MMWormhole to see some examples of code.

Vlad
  • 7,199
  • 2
  • 25
  • 32