2

Is there a class available that will tell me if a watch is paired to a device?

I'm just looking for a simple yes/no check that will tell me if a watch is paired to a device.

Kara
  • 6,115
  • 16
  • 50
  • 57
kmiklas
  • 13,085
  • 22
  • 67
  • 103

1 Answers1

6

You can use the WatchConnectivity (WC) framework to check the connections between iPhone and the paired Apple Watch, including pairing status.

Import WatchConnectivity in your code and then use the following code:

Swift:

if (WCSession.defaultSession().paired){
    // Paired
} else{
    // Not Paired
}

Objective-C:

if([WCSession defaultSession].paired){
    // Paired
} else{
    // Not Paired
}

Use the suitable code for each condition in Obj-C or Swift.

NOTE: WatchConnectivity framework is only available in watchOS 2. You can't get status of the paired Apple Watch in watchOS 1 (the old WatchKit). Make sure ur session is activated. This will return true only after session activated

Vinay Jain
  • 2,644
  • 3
  • 26
  • 44
Seyed Parsa Neshaei
  • 3,470
  • 18
  • 30