WCSession not activating with Simulator in Beta 5

I'm having trouble just activating the WCSession in beta 5. Is anyone else experiencing this?


In both my app and my extension, I am activating the session shortly after launch:


let session = WCSession.defaultSession()
session.delegate = self
session.activateSession()


And when I run both my app and watch app individually, I can set a breakpoint to ensure that activateSession is being called but whenever I try to launch the simulator (iPhone + Watch) for the watch app, I still get "notActivated" as my Activation Status when attempting to reach the parent. Is there a particularly way I need to launch this?


I have not tested this on the device, only the simulator. I'm also pretty much using the same piece of code from my watch OS 2.2 app that worked without issue.

Accepted Answer

Oh... The session just wasn't active yet when I was calling it on first launch.


activationDidCompleteWithState confirmed that for me. My bad. 😐

WCSession not activating with Simulator in Beta 5
 
 
Q