identifierForVendor or similar for watchOS (2.0+)

笑着哭i 提交于 2019-11-28 10:43:18

问题


Is there any replacement for identifierForVendoron watchOS (2.X)? I have been reading the documentation but it doesn't look like there's any similar method for identifying the device.

Thanks!


回答1:


You don't need to identify the watch. (hand wave)

A user can un-pair and re-pair different watches — say, to switch between a Sport for the gym and an Edition for cocktails — and from the user's point of view when interacting with software, they appear to be the same watch. (The un/re-pairing process is a bit cumbersome, but some people can and do rely on this behavior.)

If you must identify the user, use identifierForVendor on the paired iPhone (and pass it to the watch with WatchConnectivity if you need it there).



来源:https://stackoverflow.com/questions/34205421/identifierforvendor-or-similar-for-watchos-2-0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!