"session:activationDidCompleteWithState:error:" is not called

When trying to switch Apple Watch according to the section "Supporting Communication with Multiple Apple Watches" in "WCSession Class Reference", "sessionDidBecomeInactive:" and "sessionDidDeactivate:" are called, but "session:activationDidCompleteWithState:error:" is not called.



Checking "Xcode" > "Devices", it is confirmed that the active Watch is switched from Apple Watch1 to Apple Watch2. (Watch’s UDID is confirmed) In addition, it is confirmed that session:activationDidCompleteWithState:error: is called at the time of launching iOS app.

Is this a bug of iOS 9.3 beta?


Hi,


Are you seeing this issue in the simulator or on devices? From the descruption it sounds like it is the simulator.

Are you testing with seed 2?

No. It was confirmed iPhone6S.

The build number is less than.


<iOS 9.3 beta 2>

Build: 13E5191d

Posted Date: Jan 25, 2016

<watchOS 2.2 beta 2>


Build: 13V5108c


Updated: Jan 25, 2016

<Xcode 7.3 beta 2>


Build: 7D129n


Posted Date: Jan 25, 2016

I built application by official release of Xcode 7.3,
And I ran application in official release of iOS 9.3 and watchOS 2.2.
However, the result was the same.
I was confirmed it in iPhone6S and Apple Watch.
What should I do so that session:activationDidCompleteWithState:error: method is called when I switched Apple Watch?


The versions that I confirmed are as follows.


<iOS 9.3>
Builds: 13E233, 13E234
Posted Date: Mar 21, 2016


<watchOS 2.2>
Build: 13V144
Updated: Mar 21, 2016


<Xcode 7.3>
Build: 7D175
Posted Date: Mar 21, 2016

if you are having those fundamental problems with the API, it might be best to base your code on the Session switching code in the Apple sample:


https://developer.apple.com/library/watchos/samplecode/QuickSwitch/Introduction/Intro.html#//apple_ref/doc/uid/TP40016647

"session:activationDidCompleteWithState:error:" is not called
 
 
Q