Skip to content

Commit 709fe76

Browse files
committed
SDK-523 missed event alias
1 parent 7749ab5 commit 709fe76

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/android/io/branch/BranchSDK.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -817,6 +817,8 @@ public void sendBranchEvent(String eventName, JSONObject metaData, CallbackConte
817817
event.setDescription(metaData.getString("description"));
818818
} else if (key.equals("searchQuery")) {
819819
event.setSearchQuery(metaData.getString("searchQuery"));
820+
} else if (key.equals("customerEventAlias")) {
821+
event.setCustomerEventAlias(metaData.getString("customerEventAlias"));
820822
} else if (key.equals("customData")) {
821823
JSONObject customData = metaData.getJSONObject("customData");
822824
keys = customData.keys();

src/ios/BranchSDK.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,9 @@ -(void)sendBranchEvent:(CDVInvokedUrlCommand*)command
278278
else if ([key isEqualToString:@"description"]) {
279279
event.eventDescription = [metadata objectForKey:key];
280280
}
281+
else if ([key isEqualToString:@"customerEventAlias"]) {
282+
event.customerEventAlias = [metadata objectForKey:key];
283+
}
281284
else if ([key isEqualToString:@"customData"] && [[metadata objectForKey:key] isKindOfClass:[NSMutableDictionary class]]) {
282285
event.customData = [metadata objectForKey:key];
283286
}

0 commit comments

Comments
 (0)