Peko icon indicating copy to clipboard operation
Peko copied to clipboard

DeniedPermanently triggered when selecting Approximate instead of Precise location

Open a0g83agbc84 opened this issue 3 years ago • 2 comments

As stated in title.

Compile SDK: 33 Android version: 13 Image: https://i.imgur.com/FwdLvgh.png

CoroutineScope(Default).launch {
            val result = requestPermissionsAsync(
                Manifest.permission.ACCESS_COARSE_LOCATION,
                Manifest.permission.ACCESS_FINE_LOCATION
            )

            when (result) {
                is PermissionResult.Granted -> {Log.e("Activity", "GRANTED") } // woohoo, all requested permissions granted
                is PermissionResult.Denied.JustDenied -> {Log.e("Activity", "JUST DENIED") } // at least one permission was denied, maybe we forgot to register it in the AndroidManifest?
                is PermissionResult.Denied.NeedsRationale -> {Log.e("Activity", "NEEDS") } // user clicked Deny, let's show a rationale
                is PermissionResult.Denied.DeniedPermanently -> { Log.e("Activity", "DENIED PERM")} // Android System won't show Permission dialog anymore, let's tell the user we can't proceed
                is PermissionResult.Cancelled -> {Log.e("Activity", "CANCELLED") } // interaction was interrupted
            }
        }

a0g83agbc84 avatar Sep 19 '22 15:09 a0g83agbc84

Thanks for reporting this. I am not sure how to proceed with this. One thing is that I can't capture or control the native dialog that Android presents. Second thing is if I change the code responsible for this then DeniedPermanently logic will be also changed. This is a breaking change. Let me think about this.

deva666 avatar Sep 20 '22 06:09 deva666

This should be fixed with the latest v3.0.1 release.

deva666 avatar Nov 04 '22 08:11 deva666