From c22fbb9e66e2632665a8e6bf7a1151ec5a6942ce Mon Sep 17 00:00:00 2001 From: Alex Austin Date: Tue, 26 Apr 2016 18:16:57 -0700 Subject: [PATCH] handling of link params on iOS --- src/ios/BranchSDK.m | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/ios/BranchSDK.m b/src/ios/BranchSDK.m index 082bf623..e6bab422 100644 --- a/src/ios/BranchSDK.m +++ b/src/ios/BranchSDK.m @@ -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]; } }