CocosIOSPlatformBridge.mm 367 B

123456789101112
  1. #import "CocosIOSPlatformBridge.h"
  2. #import <UIKit/UIKit.h>
  3. @implementation CocosIOSPlatformBridge
  4. + (nullable NSString *)getDeviceID {
  5. // Do not persist IDFV in backed-up storage: a restored backup can belong to
  6. // another device. Always obtain this device's identifier from the OS.
  7. return UIDevice.currentDevice.identifierForVendor.UUIDString;
  8. }
  9. @end