How to get Apple Watch hardware ID?

This page http://theiphonewiki.com/wiki/Models , apparently, indicates that the identifiers for the new watches in the apple are "Watch 1.1" and "Watch 1", 2 "

Does anyone know how to get this identifier in the code for the connected watch? [WKInterfaceDevice currentDevice] seems to give me only the borders of the screen.

+2
source share
1 answer

There is no WatchKit method to get the hardware identifier. To distinguish between 38 mm and 42 mm watches, an Apple employee on the developer forums recommended using the screenBounds property on WKInterfaceDevice . Something like that:

 if ([WKInterfaceDevice currentDevice].screenBounds.size.width == 136.0f) { // 38mm } else { // 42mm } 
+2
source

Source: https://habr.com/ru/post/987647/


All Articles