Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dropbox Authorization Handling #328

Open
sdsilverman opened this issue Sep 6, 2021 · 3 comments
Open

Dropbox Authorization Handling #328

sdsilverman opened this issue Sep 6, 2021 · 3 comments

Comments

@sdsilverman
Copy link

sdsilverman commented Sep 6, 2021

After calling authorizeFromControllerV2 and the user dismisses the authentication dialog, the openURL routine is called.

The issue I am having is that when that call to openURL is made, although the DBMobileSafariViewController dialog has been dismissed and is not visible the dismiss has not fully completed. A call to get the topController still returns the DBMobileSafariViewController.

Is it possible that when dismissing the DBMobileSafariViewController the callback to openURL is made in the completion block of the dismiss of the DBMobileSafariViewController.

This way within openURL a UIAlertController can be properly displayed if desired.

@greg-db
Copy link
Contributor

greg-db commented Sep 7, 2021

Thanks for writing this up. I can't make any promises, but I'll send this along as a request to the team to move this to that completion handler.

@sdsilverman
Copy link
Author

Thank you Greg. Right now I have a workaround where I call dispatch_after on the main queue waiting 1 second and by then the Authorization screen is fully dismissed by then and I can display my UIAlertController. But for completeness when the call back is called the Authorization screen should already be fully dismissed.

@alexandr-appslab
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants