We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2321107 commit f1688e7Copy full SHA for f1688e7
ios/OAuthManager/OAuthManager.m
@@ -88,9 +88,11 @@ + (BOOL)setupOAuthHandler:(UIApplication *)application
88
[authPlatform setURLOpener: ^void(NSURL *URL, DCTAuthPlatformCompletion completion) {
89
// [sharedManager setPendingAuthentication:YES];
90
if ([SFSafariViewController class] != nil) {
91
+ dispatch_async(dispatch_get_main_queue(), ^{
92
safariViewController = [[SFSafariViewController alloc] initWithURL:URL];
93
UIViewController *viewController = application.keyWindow.rootViewController;
94
[viewController presentViewController:safariViewController animated:YES completion: nil];
95
+ });
96
} else {
97
[application openURL:URL];
98
}
0 commit comments