简体   繁体   English

通过 xamarin 表单导航到位置设置页面

[英]Navigate to location settings page by xamarin forms

User should navigate to location settings page by click on the button in xamarin forms app.用户应通过单击 xamarin 表单应用程序中的按钮导航到位置设置页面。 How to do it?怎么做?

Edit: i need the user to turn on location on their phones编辑:我需要用户在他们的手机上打开位置

Xamarin provides access to hardware permissions through Xamarin Essentials. Xamarin 通过 Xamarin Essentials 提供对硬件权限的访问。

https://docs.microsoft.com/en-us/xamarin/essentials/permissions?context=xamarin%2Fandroid&tabs=ios https://docs.microsoft.com/en-us/xamarin/essentials/permissions?context=xamarin%2Fandroid&tabs=ios

You can easily prompt the user for permissions in-app using the appropriate checks and prompts .您可以使用适当的检查和提示轻松地在应用内提示用户权限。

For your specific scenario, you might want to use the "LocationWhenInUse" or "LocationAlways" permissions.对于您的特定场景,您可能希望使用“LocationWhenInUse”或“LocationAlways”权限。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM