Skip to content

Commit 1ba8ff2

Browse files
authored
Merge pull request #1190 from BranchMetrics/SDK-1528
[SDK-1528] Add developer_identity to v1/open requests
2 parents b4cd036 + a61821b commit 1ba8ff2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Branch-SDK/BNCPreferenceHelper.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,6 @@ - (void) clearTrackingInformation {
709709
// Don't clear these
710710
self.randomizedDeviceToken = nil;
711711
self.randomizedBundleToken = nil;
712-
self.userIdentity = nil;
713712
*/
714713
self.sessionID = nil;
715714
self.linkClickIdentifier = nil;
@@ -726,6 +725,7 @@ - (void) clearTrackingInformation {
726725
self.previousAppBuildDate = nil;
727726
self.requestMetadataDictionary = nil;
728727
self.lastStrongMatchDate = nil;
728+
self.userIdentity = nil;
729729
}
730730
}
731731

Branch-SDK/BNCServerInterface.m

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,11 @@ - (NSMutableDictionary *)prepareParamDict:(NSDictionary *)params
472472
}
473473
}
474474
}
475+
476+
if ([self.requestEndpoint containsString:@"/v1/open"]) {
477+
[fullParamDict bnc_safeSetObject:[BNCPreferenceHelper sharedInstance].userIdentity forKey:@"identity"];
478+
}
479+
475480
return fullParamDict;
476481
}
477482

0 commit comments

Comments
 (0)