WCSession reachable

I am trying to check if the reachable property of a session is getting updated when iPhone bluetooth turns off


to do so, i have written a tiny app that changes label text on the watch


if session.reachable == true {

label.setText("YES")

} else {

label.setText("NO")

}


but the problem is that session.reachable is true always, all the time label text is "YES"


i have also tried sessionReachabilityDidChange , but it doesn't seem to be updating the reachable bool value




any idea? is it still buggy, or am i doing something wrong?

Maybe you need to turn Wifi off as well. (Alltough in the docs only bluetooth is mentioned)


Dirk

I did that but forgot to mention it.

still no luck

Hi Sameh,


I have reproduced this issue so this is in fact a bug. Would you be able to file a bug report, report back with the radar number and then I'll add my additional information to it?

bug report number is 21478090

thank you! This will be fixed in a future seed

this issue remains the same after releasing iOS 9 Beta 2 and WatchOS Beta 2

it still happens on the latest WatchOS Beta (August 6, 2015 - Build:13S5325c).


Does anyone get luck?

this issue remains the same after releasing iOS 10.2.1 and WatchOS 3.1.3

I have turn bluetooth and wifi off.

When I get the reachable property it will be only return false once.Then it will always retrun YES.

Sorry to hear you are having problems, but the originally bug discussed here has been fixed so you must be encountering something else. Best way for us to help you would be for you to file a new bug report with a sample project attached.

WCSession reachable
 
 
Q