1

Before xcode 8 - i was using following code, but it is not working now- delegate method from watch side is not getting called

if WCSession.isSupported() {
        let watchSession = WCSession.defaultSession()
        watchSession.delegate = self
        watchSession.activateSession()
        if watchSession.paired && watchSession.watchAppInstalled {
            do {
                try watchSession.updateApplicationContext(["key1": "value1"])
            } catch let error as NSError {
                print(error.description)
            }
        }
    }

in above code if condition is not being satisfied.

Indrajit Chavda
  • 361
  • 1
  • 2
  • 13

1 Answers1

2

make sure you have turned on the group feature in both target (watch's & mobile's)

ak sacha
  • 2,149
  • 14
  • 19