sparrowcode / PermissionsKit

Universal API for request permission and get its statuses.
https://x.com/sparrowcode_ios
MIT License
5.64k stars 462 forks source link

Permission.location(access: .always).request { } 不可以正确回调 #341

Closed luckycherry closed 4 months ago

luckycherry commented 4 months ago

弹窗时直接就回调了 点击给/不给权限之后无回调

ivanvorobei commented 4 months ago

please use English for report

luckycherry commented 4 months ago

Permission.location(access: .always).request { } The code is not invoking the callback correctly. It's returning the result immediately when the permission prompt appears, (and there's no callback after the user clicks "Always Allow" or "Allow While Using".)