[ios] Fixes crash when vendorId is nil
This commit is contained in:
committed by
Jason Wray
parent
9cd9065031
commit
07f6dee616
@@ -402,6 +402,9 @@ const NSTimeInterval MGLFlushInterval = 60;
|
||||
|
||||
// Build only IDFV event
|
||||
NSString *vid = [[[UIDevice currentDevice] identifierForVendor] UUIDString];
|
||||
|
||||
if (!vid) return;
|
||||
|
||||
NSDictionary *vevt = @{
|
||||
@"event" : MGLEventTypeAppUserTurnstile,
|
||||
@"created" : [strongSelf.rfc3339DateFormatter stringFromDate:[NSDate date]],
|
||||
|
||||
Reference in New Issue
Block a user