Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mac App Store App and identifierForVendor

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

UIDevice.currentDevice().identifierForVendor

Is there an equivalent for Mac OSX?

like image 983
FlimFlam Vir Avatar asked Feb 07 '23 10:02

FlimFlam Vir


1 Answers

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.

like image 189
Max_B Avatar answered Feb 16 '23 02:02

Max_B