diff options
author | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-10-21 16:38:38 +0300 |
---|---|---|
committer | Ilya Grechuhin <i.grechuhin@gmail.com> | 2016-10-21 16:38:38 +0300 |
commit | 6763e507b657b7d3fd204a2bbbb194da0c958ac2 (patch) | |
tree | e839463c09be467e42eb63c6afe60af2a33f4c9a /platform | |
parent | 9905082d35121f4b7fcd9fa030f8bd730530815c (diff) |
[ios] Changed platform UniqueClientId to Alohalytics.
Diffstat (limited to 'platform')
-rw-r--r-- | platform/platform_ios.mm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/platform_ios.mm b/platform/platform_ios.mm index 892b351795..0d50d04d29 100644 --- a/platform/platform_ios.mm +++ b/platform/platform_ios.mm @@ -23,6 +23,8 @@ #import "../iphone/Maps/Classes/Common.h" +#import "3party/Alohalytics/src/alohalytics_objc.h" + #import <Foundation/NSAutoreleasePool.h> #import <Foundation/NSBundle.h> #import <Foundation/NSPathUtilities.h> @@ -131,7 +133,7 @@ static string GetMacAddress() return result; } -string Platform::UniqueClientId() const { return HashUniqueID(GetMacAddress() + GetDeviceUid()); } +string Platform::UniqueClientId() const { return [Alohalytics installationId].UTF8String; } static void PerformImpl(void * obj) { Platform::TFunctor * f = reinterpret_cast<Platform::TFunctor *>(obj); |