From 0b840965d634eab547320bd00e45109e1205dba8 Mon Sep 17 00:00:00 2001 From: nsingh-branch Date: Mon, 11 Nov 2024 16:24:53 -0800 Subject: [PATCH] Small fix --- Sources/BranchSDK/BNCRequestFactory.m | 3 ++- Sources/BranchSDK/BNCSystemObserver.m | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Sources/BranchSDK/BNCRequestFactory.m b/Sources/BranchSDK/BNCRequestFactory.m index f4e170c57..d9fc865cb 100644 --- a/Sources/BranchSDK/BNCRequestFactory.m +++ b/Sources/BranchSDK/BNCRequestFactory.m @@ -610,7 +610,8 @@ - (void)updateDeviceInfoToMutableDictionary:(NSMutableDictionary *)dict { [self.deviceInfo checkAdvertisingIdentifier]; // Only include hardware ID fields for Full Attribution Level - if ([self.preferenceHelper attributionLevel] == BranchAttributionLevelFull) { + if ([self.preferenceHelper attributionLevel] == BranchAttributionLevelFull + || [self.preferenceHelper attributionLevelInitialized] == false) { // hardware id information. idfa, idfv or random NSString *hardwareId = [self.deviceInfo.hardwareId copy]; diff --git a/Sources/BranchSDK/BNCSystemObserver.m b/Sources/BranchSDK/BNCSystemObserver.m index e171a7271..dbb6abefd 100644 --- a/Sources/BranchSDK/BNCSystemObserver.m +++ b/Sources/BranchSDK/BNCSystemObserver.m @@ -84,6 +84,8 @@ + (NSString *)advertiserIdentifier { if ([uid isEqualToString:@"00000000-0000-0000-0000-000000000000"]) { [[BranchLogger shared] logVerbose:[NSString stringWithFormat:@"IDFA is all 0's. Probably running on a simulator or an App Clip."] error:nil]; uid = nil; + } else { + [[BranchLogger shared] logDebug:[NSString stringWithFormat:@"IDFA found: %@", uid] error:nil]; } } return uid;