From 2da729dca09133442142be77c948281857da4b50 Mon Sep 17 00:00:00 2001 From: Brad Leege Date: Tue, 24 Mar 2015 10:33:35 -0500 Subject: [PATCH] #1033 - Fix automatic overwriting of anonId value --- platform/ios/MGLMapboxEvents.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/ios/MGLMapboxEvents.m b/platform/ios/MGLMapboxEvents.m index 563aa3cdb..cbb245859 100644 --- a/platform/ios/MGLMapboxEvents.m +++ b/platform/ios/MGLMapboxEvents.m @@ -40,6 +40,8 @@ NSNumber *scale; - (id) init { self = [super init]; if (self) { + + // Configure Events Infrastructure _queue = [[NSMutableArray alloc] init]; _flushAt = 20; _flushAfter = 10000; @@ -64,9 +66,6 @@ NSNumber *scale; _anonid = [[[UIDevice currentDevice] identifierForVendor] UUIDString]; } - - // Get Vendor ID - anonId = [[[UIDevice currentDevice] identifierForVendor] UUIDString]; model = [self getSysInfoByName:"hw.machine"]; iOSVersion = [NSString stringWithFormat:@"%@ %@", [UIDevice currentDevice].systemName, [UIDevice currentDevice].systemVersion]; if ([UIScreen instancesRespondToSelector:@selector(nativeScale)]) {