After updating the Xamarin libraries in my xamarin forms app and setting the Android target framework from 8.0 to 10.0, the app on Android is no longer requesting Always On location when calling the geolocation code below:
var location = await Geolocation.GetLocationAsync(new GeolocationRequest(GeolocationAccuracy.Best, TimeSpan.FromSeconds(10)));
The app only shows the "When app is in use" and "Deny access" option now and no longer the "Always On" option.
I tried adding a new flag permission flag to the android manifest file but no result:
Anyone knows how to solve this and bring back the always on for android devices?