Repository navigation
What's changed
iOS fixes
- No unexpected permission prompt when an "Allow Once" grant expires mid-request (#80, #81). Every authorization callback of a pending request asked for authorization again when the status was
NotDetermined. When a temporary "Allow Once" grant expired while a request was waiting for a fix (app sent to the background, then brought back before the timeout), the system permission prompt appeared without the app asking for it. Now:- Each request shows the permission prompt at most once. A repeated
NotDeterminedcallback while the prompt is showing no longer shows a second prompt. - If the grant is revoked after the request started, the request rejects with
UNAUTHORIZEDright away, instead of prompting again.
- Each request shows the permission prompt at most once. A repeated
Thanks to @IjzerenHein for the report and for verifying the fix with a reproduction app.
Error codes, messages and the public API are unchanged.