We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have:
val permissionState = rememberPermissionState(Permission.FineLocation)
and then when a button is pressed I do:
when (permissionStatus) { PermissionStatus.Granted -> requestCurrentLocation() is PermissionStatus.Denied -> when (permissionStatus.shouldShowRationale) { true -> permissionRationalDialog = true false -> { hasRequestedLocation = true permissionState.launchPermissionRequest() } } }
the problem is on iOS, this permission dialog:
is never shown. It just seems like the implementation for iOS is buggy or am I misusing the API?
I did manage to trigger the Permission Dialog manually via:
class AppDelegate : NSObject, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool { let test = CLLocationManager() test.requestWhenInUseAuthorization() return true } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have:
and then when a button is pressed I do:
the problem is on iOS, this permission dialog:
is never shown. It just seems like the implementation for iOS is buggy or am I misusing the API?
I did manage to trigger the Permission Dialog manually via:
The text was updated successfully, but these errors were encountered: