Skip to content

Commit d5b3191

Browse files
committed
Merge branch 'master' into SDK-1831-update-branch.json-support
2 parents 1715b45 + 28a4c28 commit d5b3191

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

BranchSDK/BranchEvent.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ - (void)processResponse:(BNCServerResponse*)response error:(NSError*)error {
8282
NSDictionary *dictionary = ([response.data isKindOfClass:[NSDictionary class]])
8383
? (NSDictionary*) response.data : nil;
8484

85+
#if !TARGET_OS_TV
8586
if (dictionary && [dictionary[BRANCH_RESPONSE_KEY_UPDATE_CONVERSION_VALUE] isKindOfClass:NSNumber.class]) {
8687
NSNumber *conversionValue = (NSNumber *)dictionary[BRANCH_RESPONSE_KEY_UPDATE_CONVERSION_VALUE];
8788
// Regardless of SKAN opted-in in dashboard, we always get conversionValue, so adding check to find out if install/open response had "invoke_register_app" true
@@ -116,6 +117,7 @@ - (void)processResponse:(BNCServerResponse*)response error:(NSError*)error {
116117
}
117118
}
118119
}
120+
#endif
119121

120122
if (self.completion) {
121123
self.completion(dictionary, error);

BranchSDK/BranchOpenRequest.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ - (void)processResponse:(BNCServerResponse *)response error:(NSError *)error {
299299
[[BNCAppGroupsData shared] saveAppClipData];
300300
}
301301

302+
#if !TARGET_OS_TV
302303
if ([data[BRANCH_RESPONSE_KEY_INVOKE_REGISTER_APP] isKindOfClass:NSNumber.class]) {
303304
NSNumber *invokeRegister = (NSNumber *)data[BRANCH_RESPONSE_KEY_INVOKE_REGISTER_APP];
304305
preferenceHelper.invokeRegisterApp = invokeRegister.boolValue;
@@ -364,7 +365,7 @@ - (void)processResponse:(BNCServerResponse *)response error:(NSError *)error {
364365
}
365366
}
366367
}
367-
368+
#endif
368369

369370
if (self.callback) {
370371
self.callback(YES, nil);

0 commit comments

Comments
 (0)