FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix stuck authorization request by humblehacker · Pull Request #31 · AsyncSwift/AsyncLocationKit · GitHub

fix stuck authorization request - #31

Merged
gre4ixin merged 2 commits into
AsyncSwift:mainfrom
humblehacker:30-fix-stuck-authorization-request
Dec 5, 2022
Merged

fix stuck authorization request#31
gre4ixin merged 2 commits into
AsyncSwift:mainfrom
humblehacker:30-fix-stuck-authorization-request

Conversation

humblehacker commented Nov 23, 2022
edited
Loading

Copy link
Copy Markdown
Contributor

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 force-pushed the 30-fix-stuck-authorization-request branch from a37d735 to 7a293df Compare November 28, 2022 22:28
humblehacker marked this pull request as ready for review November 28, 2022 22:28
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 force-pushed the 30-fix-stuck-authorization-request branch from 7a293df to 5d21789 Compare November 29, 2022 17:41

Copy link
Copy Markdown
Member

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

gre4ixin merged commit d6885b7 into AsyncSwift:main Dec 5, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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


Back | FazBrowse Home | New Git URL