Reask for location permissions or navigate to location settings #19330
-
Hello everyone! In my Android app, I am asking the user for location permission with Now, I want to help the user change their location permission if they change their mind and tap the "LocationButton" again. I am thinking of either showing the standard location permission dialog again or navigating to the location permission settings page. Does anyone know if one of these options is possible and how to implement it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hey @Zerachiel01. Unfortunately, Android doesn't allow re-triggering the permission dialog after denial unless the user interacts with the settings. To navigate to Settings, you can use the https://developer.android.com/reference/android/provider/Settings#ACTION_LOCATION_SOURCE_SETTINGS and here is how you could use it: |
Beta Was this translation helpful? Give feedback.
Hey @Zerachiel01.
Unfortunately, Android doesn't allow re-triggering the permission dialog after denial unless the user interacts with the settings. To navigate to Settings, you can use the https://developer.android.com/reference/android/provider/Settings#ACTION_LOCATION_SOURCE_SETTINGS and here is how you could use it:
uno/src/Uno.UWP/System/Launcher.Android.SpecialUris.cs
Line 83 in 0ce7d20