I am developing independent apple watch application.I need unique id of watch to register and call api.
And I know using xcode and attached device I get unique id but I need unique id programatically.
I don't think there is an equivalent to identifierForVendor in watchOS nor is there a keychain. Alternatively you could create your own UUID identifier and save it on the watch. You could also access the user's CloudKit database and use a CloudKit file (e.g. userRecord) associated with the user's Apple Id.