Skip to content

Commit

Permalink
handling of link params on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
aaustin committed Apr 27, 2016
1 parent 93e9dfe commit c22fbb9
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/ios/BranchSDK.m
Original file line number Diff line number Diff line change
Expand Up @@ -399,8 +399,20 @@ - (void)generateShortUrl:(CDVInvokedUrlCommand*)command
if ([key isEqualToString:@"duration"]) {
props.matchDuration = (NSUInteger)[((NSNumber *)[arg1 objectForKey:key]) integerValue];
}
else {
[props setValue:[arg1 objectForKey:key] forKey:key];
else if ([key isEqualToString:@"feature"]) {
props.feature = [arg1 objectForKey:key];
}
else if ([key isEqualToString:@"stage"]) {
props.stage = [arg1 objectForKey:key];
}
else if ([key isEqualToString:@"alias"]) {
props.alias = [arg1 objectForKey:key];
}
else if ([key isEqualToString:@"channel"]) {
props.channel = [arg1 objectForKey:key];
}
else if ([key isEqualToString:@"tags"] && [[arg1 objectForKey:key] isKindOfClass:[NSArray class]]) {
props.tags = [arg1 objectForKey:key];
}
}

Expand Down

0 comments on commit c22fbb9

Please sign in to comment.