My app needs to access users' locations. In Manifest file, I added the needed permissions and in MainActivity I also added Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults) in OnRequestPermissionsResult.
The first time the app is launched, it will ask the user for permissions. The issue is that even though I selected "Allow only while using the app", when I go to the device's Settings -> Location -> App permissions and find my app, it still has "Deny" selected. I wonder why my initial choice has no effect? Is there a way to set the permission to what I choose the first time I run the app? I don't want the users to the device's Settings to manually change this. That also confuses them since they thought they chose "Allow only while using the app" while it is not the case.

