Skip to content

Commit 0b84096

Browse files
committed
Small fix
1 parent 6392c7a commit 0b84096

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Sources/BranchSDK/BNCRequestFactory.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,8 @@ - (void)updateDeviceInfoToMutableDictionary:(NSMutableDictionary *)dict {
610610
[self.deviceInfo checkAdvertisingIdentifier];
611611

612612
// Only include hardware ID fields for Full Attribution Level
613-
if ([self.preferenceHelper attributionLevel] == BranchAttributionLevelFull) {
613+
if ([self.preferenceHelper attributionLevel] == BranchAttributionLevelFull
614+
|| [self.preferenceHelper attributionLevelInitialized] == false) {
614615

615616
// hardware id information. idfa, idfv or random
616617
NSString *hardwareId = [self.deviceInfo.hardwareId copy];

Sources/BranchSDK/BNCSystemObserver.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ + (NSString *)advertiserIdentifier {
8484
if ([uid isEqualToString:@"00000000-0000-0000-0000-000000000000"]) {
8585
[[BranchLogger shared] logVerbose:[NSString stringWithFormat:@"IDFA is all 0's. Probably running on a simulator or an App Clip."] error:nil];
8686
uid = nil;
87+
} else {
88+
[[BranchLogger shared] logDebug:[NSString stringWithFormat:@"IDFA found: %@", uid] error:nil];
8789
}
8890
}
8991
return uid;

0 commit comments

Comments
 (0)