Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding watchOS version programmatically

I want to find the watchOS version of the Apple Watch which is paired with the iOS device.

The following code works for iOS devices, but I couldn't figure out a way to find the watchOS version:

[[UIDevice currentDevice].systemVersion]

And also, with iOS 9.3 and watchOS 2.2 we will be allowed to pair with more than one watches. So, is there any way I can get details of all paired watches programatically?

like image 218
riyaz Avatar asked Jul 11 '16 07:07

riyaz


People also ask

How do I find my Apple Watch OS version?

On your Apple Watch, open the Settings app , then go to General > About. The items you can view include: Name. Software version.

How do I find my OS version in Objective C?

In Objective-C, you need to check the system version and perform a comparison. [[NSProcessInfo processInfo] operatingSystemVersion] in iOS 8 and above.

Which Apple watches have os7?

watchOS 7 will be available this fall as a free software update for Apple Watch Series 3, Apple Watch Series 4, or Apple Watch Series 5 paired with iPhone 6s or later running iOS 14 or later. Some features may not be available in all regions or all languages or on all devices.


1 Answers

You can use the below code to get watch kit details

[[WKInterfaceDevice currentDevice] systemVersion]  

The details can be found in the docs.

like image 61
Nattudurai Avatar answered Oct 13 '22 00:10

Nattudurai