Mac App Store App and identifierForVendor

别来无恙 提交于 2019-12-07 11:14:31

问题


To uniquely identify an App in iOS 6 and above you use this code:

UIDevice.currentDevice().identifierForVendor

Is there an equivalent for Mac OSX?


回答1:


The MAC doesn't have anything equivalent to iOS's identifierForVendor or advertising Id alas.




回答2:


For the record and users searching SO for this matter: Apple documentation about validating a purchase receipt gives the implementation tip to get the GUID of a Mac, as the equivalent procedure for identifierForVendor: Get the GUID in macOS

It is MAC address based, but is the choice of Apple for purchase hash control.



来源:https://stackoverflow.com/questions/36209097/mac-app-store-app-and-identifierforvendor

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