location_settings_denied returned while enabling the location.
See original GitHub issueDescribe the bug
When the device’s location is turned off then the app requests to enable location after you enable it, it will return location_settings_denied
To Reproduce Steps to reproduce the behavior:
- Turn off your locatoin.
- Go to your app that uses this library.
- Request to get
Locus.getCurrentLocation
- Enable location
- See error
Expected behavior
After enabling the location should retry to get the location instead returning location_settings_denied
Smartphone (please complete the following information):
- Device: Samsung A70
- OS: Android
- Version: Android 11
Issue Analytics
- State:
- Created 2 years ago
- Comments:15 (10 by maintainers)
Top Results From Across the Web
GetCurrentLocation never returns when location services is ...
When debugging the source code I find that the call to GetBestProvider in Geolocation.android.cs/PlatformLocationAsync method returns the ...
Read more >How to show enable location dialog like Google maps?
LocationSettingsRequest.Builder has a method setAlwaysShow(boolean show) . While the document indicates it's currently doing nothing(updated 2015-07-05: ...
Read more >How do I enable notifications and location? - Citizen
We need this information to send you relevant alerts. Go to Settings > Notifications > Citizen, and make sure that Allow Notifications is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I was facing same issue, So I made some changes in library. Now It is working fine for me. Tested (Eabled/Disabled GPS and Handled it based on resultCode.
@9und70 Great. I’ll release a fix for this soon. Thanks!