Skip to content

Commit

Permalink
Small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nsingh-branch committed Nov 12, 2024
1 parent 6392c7a commit 0b84096
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/BranchSDK/BNCRequestFactory.m
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down
2 changes: 2 additions & 0 deletions Sources/BranchSDK/BNCSystemObserver.m
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0b84096

Please sign in to comment.