forked from CodeForPhilly/CyclePhilly-iOS-app
-
Notifications
You must be signed in to change notification settings - Fork 6
/
UIDevice+IdentifierAddition.h
35 lines (28 loc) · 1 KB
/
UIDevice+IdentifierAddition.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//
// UIDevice(Identifier).h
// UIDeviceAddition
//
// Created by Georg Kitz on 20.08.11.
// Copyright 2011 Aurora Apps. All rights reserved.
//
#import <Foundation/Foundation.h>
//#import <AdSupport/ASIdentifierManager.h>
@interface UIDevice (IdentifierAddition)
@property(nonatomic, readonly, retain) NSUUID *identifierForVendor;
@property(nonatomic, readonly) NSUUID *advertisingIdentifier;
/*
* @method uniqueDeviceIdentifier
* @description use this method when you need a unique identifier in one app.
* It generates a hash from the MAC-address in combination with the bundle identifier
* of your app.
*/
- (NSString *) uniqueDeviceIdentifier;
/*
* @method uniqueGlobalDeviceIdentifier
* @description use this method when you need a unique global identifier to track a device
* with multiple apps. as example a advertising network will use this method to track the device
* from different apps.
* It generates a hash from the MAC-address only.
*/
- (NSString *) uniqueGlobalDeviceIdentifier;
@end