user100
user100

Reputation: 327

Apple Watch and iphone communication

I am implementing apple watch app with in my existing app.I need to full fill these task between both iphone and watch

1) sending data from watch to iphone Done (by using openParentApplication).

2) getting call back also done (using openParentApplication call back method)

3) I need to get apple watch notify when user click on a button on iphone app .I have implemented reverse functionality using openParentApplication.

I stuck how to update apple watch UI after user click on any button or any particular task happen on iphone app.

Please let me know is there any way to perform passing event and data from iphone to apple watch

Upvotes: 2

Views: 330

Answers (2)

lehn0058
lehn0058

Reputation: 20237

You should checkout the new WCSessionDelegate is watchOS 2.0. It can be implemented on both the Apple Watch and contains multiple methods for sending data back and forth between the two devices. Detailed information can be found in the WWDC video Introducing Watch Connectivity

Upvotes: 0

Om Prakash
Om Prakash

Reputation: 9461

Please use this link https://github.com/mutualmobile/MMWormhole for communication between iphone and watchKit.

Upvotes: 0

Related Questions