File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,11 @@ + (BOOL)setupOAuthHandler:(UIApplication *)application
8888 [authPlatform setURLOpener: ^void (NSURL *URL, DCTAuthPlatformCompletion completion) {
8989 // [sharedManager setPendingAuthentication:YES];
9090 if ([SFSafariViewController class ] != nil ) {
91- safariViewController = [[SFSafariViewController alloc ] initWithURL: URL];
92- UIViewController *viewController = application.keyWindow .rootViewController ;
93- [viewController presentViewController: safariViewController animated: YES completion: 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+ });
9496 } else {
9597 [application openURL: URL];
9698 }
You can’t perform that action at this time.
0 commit comments