Skip to content

Commit ba23fc3

Browse files
Renemari Padilloethanneff
authored andcommitted
[CHORE] Added campaign field on generating link
1 parent 3bb0704 commit ba23fc3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/android/io/branch/BranchSDK.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ private BranchLinkProperties createLinkProperties(JSONObject options, JSONObject
459459
if (options.has("stage")) {
460460
linkProperties.setStage(options.getString("stage"));
461461
}
462+
if (options.has("campaign")) {
463+
linkProperties.setCampaign(options.getString("campaign"));
464+
}
462465
if (options.has("duration")) {
463466
linkProperties.setDuration(options.getInt("duration"));
464467
}

src/ios/BranchSDK.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,9 @@ - (void)generateShortUrl:(CDVInvokedUrlCommand*)command
454454
else if ([key isEqualToString:@"stage"]) {
455455
props.stage = [arg1 objectForKey:key];
456456
}
457+
else if ([key isEqualToString:@"campaign"]) {
458+
props.campaign = [arg1 objectForKey:key];
459+
}
457460
else if ([key isEqualToString:@"alias"]) {
458461
props.alias = [arg1 objectForKey:key];
459462
}

0 commit comments

Comments
 (0)