I have read that for security reasons this action can not be carried out even though there are applications that do so, such as Google Maps, in which if one enters the application with the gps deactivated, this application shows an alert with the option to activate it.
I also read that there are less invasive ways to urge the user to activate the gps, for example by sending it to the configuration page. I need to implement some of these ways.
As I am new to Xamarin I would ask you to reference some application on github to understand the full context of how this develops.