Search code examples
ioswatchkitapple-watch

How to get apple watch serial number programmatically using swift2?


I am developing an apple watch app where I need device serial id. How do I get it programmatically?

Below question is unanswered. How to get Apple Watch Unique id or UDID or Serial Number Programatically?

and there is no other link to fetch it programmatically.


Solution

  • you can't access the serial number. This was possible in the past on the phone and was deprecated by Apple. After that people used to generate an id using mac address, this was deprecated and not supported as well shortly after

    1) Your server should generate the id on first login, after that you can store the id in the keychain in case the user delete/reinstall the app so you can restore state for the user

    2) You can use alternate methods to get an id, e.g. facebook login, gamecenter..