I'm finding that Geolocator.checkPermission() never returns LocationPermission.deniedForever when I would expect it to. I'm able to reproduce this behaviour in the sample app, on API 29 and 30.
After tapping "Deny & don't ask again" (API 29) or tapping "Deny" twice (API 30) Geolocator.checkPermission() should return LocationPermission.deniedForever.
The message on the screen doesn't update to reflect that permission is permanently denied.
Tapping the "Request permission" button again doesn't load the permission dialog.
Version: 6.1.3
Platform:
Hi @pento, thank you very much for reporting this issue. It took me a bit to find time to analyze the problem but I found it.
Today I released version 6.1.5 of the geolocator plugin containing a fix for this issue.
That's awesome, thank you for taking the time to track it down, @mvanbeusekom! I've just tested it, and it works perfectly. 馃檪
Most helpful comment
That's awesome, thank you for taking the time to track it down, @mvanbeusekom! I've just tested it, and it works perfectly. 馃檪