I have added the location permission feature in my project and the permission alert is working fine on ios simulators. But in a real iPhone device, permission is not asking.
I have added the location permissions in the info.plist file like below.
The app settings page shows all the other permission details except the location.
My Code:
public async void ShareLocation()
{
var status = await Permissions.RequestAsync<Permissions.LocationAlways>();
if (status == PermissionStatus.Granted)
{
//Actions
}
}
Reference: Xamarin Forms: How to check if GPS is on or off in Xamarin ios app?