Skip to content

Commit dec974a

Browse files
committed
retrieve content type in BUO
1 parent d614c7f commit dec974a

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Branch-SDK/Branch-SDK/BranchUniversalObject.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,9 @@ + (BranchUniversalObject *)getBranchUniversalObjectFromDictionary:(NSDictionary
327327
universalObject.currency = dictionary[BNCPurchaseCurrency];
328328
}
329329

330+
if (dictionary[BRANCH_LINK_DATA_KEY_CONTENT_TYPE]) {
331+
universalObject.type = dictionary[BRANCH_LINK_DATA_KEY_CONTENT_TYPE];
332+
}
330333
return universalObject;
331334
}
332335

Branch-TestBed/Branch-TestBed/ViewController.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
NSString *user_id2 = @"[email protected]";
2727
NSString *live_key = @"live_key";
2828
NSString *test_key = @"test_key";
29-
29+
NSString *type = @"some type";
3030

3131
@interface ViewController ()
3232

@@ -57,6 +57,7 @@ - (void)viewDidLoad {
5757
_branchUniversalObject.imageUrl = imageUrl;
5858
_branchUniversalObject.price = 1000;
5959
_branchUniversalObject.currency = @"$";
60+
_branchUniversalObject.type = type;
6061
[_branchUniversalObject addMetadataKey:@"deeplink_text" value:[NSString stringWithFormat:
6162
@"This text was embedded as data in a Branch link with the following characteristics:\n\n canonicalUrl: %@\n title: %@\n contentDescription: %@\n imageUrl: %@\n", canonicalUrl, contentTitle, contentDescription, imageUrl]];
6263
[self refreshRewardPoints];

0 commit comments

Comments
 (0)