Skip to content

Commit 3571489

Browse files
committed
update method
1 parent aa977ec commit 3571489

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Branch-SDK/Branch-SDK/BNCContentDiscoveryManager.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,7 @@ - (void)userActivityWillSave:(NSUserActivity *)userActivity {
469469
- (UIViewController *)getActiveViewController {
470470
Class UIApplicationClass = NSClassFromString(@"UIApplication");
471471
if (UIApplicationClass) {
472-
UIViewController *rootViewController = [UIApplication sharedApplication].keyWindow.rootViewController;
472+
UIViewController *rootViewController = [UIApplicationClass sharedApplication].keyWindow.rootViewController;
473473
return [self getActiveViewController:rootViewController];
474474
}
475475

Branch-SDK/Branch-SDK/BNCServerInterface.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ - (NSDictionary *)prepareParamDict:(NSDictionary *)params key:(NSString *)key re
232232
NSMutableDictionary *fullParamDict = [[NSMutableDictionary alloc] init];
233233
[fullParamDict addEntriesFromDictionary:params];
234234
fullParamDict[@"sdk"] = [NSString stringWithFormat:@"ios%@", SDK_VERSION];
235-
if (!NSClassFromString(@"UIApplication")) {
235+
if ([[[NSBundle mainBundle] executablePath] containsString:@".appex/"]) {
236236
fullParamDict[@"ios_extension"] = @(1);
237237
}
238238
fullParamDict[@"retryNumber"] = @(retryNumber);

0 commit comments

Comments
 (0)