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

fix stuck authorization request #31

Merged

Conversation

humblehacker
Copy link
Contributor

@humblehacker humblehacker commented Nov 23, 2022

I managed to put in a workaround based on this approach. Looking forward to hearing your thoughts on the solution.

This branch comes off my other branch for PR #25, so if you want to see only the changes for this PR, look at the last commit (a37d735).

Fixes #30

@humblehacker humblehacker force-pushed the 30-fix-stuck-authorization-request branch from a37d735 to 7a293df Compare November 28, 2022 22:28
@humblehacker humblehacker marked this pull request as ready for review November 28, 2022 22:28
@gre4ixin gre4ixin self-requested a review November 29, 2022 10:25
In some circumstances, requesting location permission has no effect. When this happens, the call to request permission never returns. This fix uses the UIApplication state as a proxy for knowing if an authorization dialog has been shown, and when it has been dismissed so we can return a value in the case that the dialog is never shown.

fixes AsyncSwift#30
@humblehacker humblehacker force-pushed the 30-fix-stuck-authorization-request branch from 7a293df to 5d21789 Compare November 29, 2022 17:41
@gre4ixin
Copy link
Member

Hi) i'll review your PR on this week)

@gre4ixin gre4ixin merged commit d6885b7 into AsyncSwift:main Dec 5, 2022
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

Successfully merging this pull request may close these issues.

Requesting Always authorization never returns in some circumstances
2 participants