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;