Skip to content

Commit a7b1c94

Browse files
authored
Merge pull request #453 from BranchMetrics/hotfix-for-fb-exception
hotfix for facebook shouldWaitForInit functionality
2 parents ff481c6 + 344e76a commit a7b1c94

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Branch-SDK/Branch-SDK/Branch.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,8 +410,8 @@ - (BOOL)continueUserActivity:(NSUserActivity *)userActivity {
410410
//check to see if a browser activity needs to be handled
411411
if ([userActivity.activityType isEqualToString:NSUserActivityTypeBrowsingWeb]) {
412412
self.preferenceHelper.universalLinkUrl = [userActivity.webpageURL absoluteString];
413-
[self initUserSessionAndCallCallback:YES];
414413
self.preferenceHelper.shouldWaitForInit = NO;
414+
[self initUserSessionAndCallCallback:YES];
415415

416416
id branchUniversalLinkDomains = [self.preferenceHelper getBranchUniversalLinkDomains];
417417
if ([branchUniversalLinkDomains isKindOfClass:[NSString class]] && [[userActivity.webpageURL absoluteString] containsString:branchUniversalLinkDomains]) {
@@ -448,8 +448,8 @@ - (BOOL)continueUserActivity:(NSUserActivity *)userActivity {
448448
}
449449
}
450450

451-
[self initUserSessionAndCallCallback:YES];
452451
self.preferenceHelper.shouldWaitForInit = NO;
452+
[self initUserSessionAndCallCallback:YES];
453453

454454
return spotlightIdentifier != nil;
455455
}
@@ -1367,4 +1367,4 @@ + (NSString *)kitDisplayVersion {
13671367
return @"0.12.9";
13681368
}
13691369

1370-
@end
1370+
@end

0 commit comments

Comments
 (0)