简体   繁体   English

如何在用户走过时跟踪GPS坐标,来自iama平台的xamarin.forms

[英]How to track the GPS coordinates as user walks, from xamarin.forms for ios platform

I just went through this link 我刚刚浏览了这个链接

to track GPS co-ordinates of current location as User walks with a xamarin.forms app (iOS platforms) 当用户使用xamarin.forms应用程序(iOS平台)时,跟踪当前位置的GPS坐标

But I could not find how to do it, as I am born new to xamarin.forms, 但我找不到怎么做,因为我是xamarin.forms的新生儿,

Can we do this in xamarin.forms or should I Create a xamarin ios project? 我们可以在xamarin.forms中执行此操作,还是应该创建一个xamarin ios项目?

Any links/tutorials to track the user location through xamarin.forms for iOS platfomrs would be appreciated, thanks in advance. 通过xamarin.forms为iOS平台跟踪用户位置的任何链接/教程将不胜感激,提前感谢。

The Geolocator Plugin for Xamarin and Windows is also a great way to deal with location services (such as fetching a user's current location) in a cross-platform manner. Xamarin和WindowsGeolocator插件也是以跨平台方式处理位置服务(例如获取用户当前位置)的好方法。

The API is literally a few lines, and is as simple as calling one method. API实际上只有几行,就像调用一个方法一样简单。 If you wish to do more advanced things like track a user's location in the background (use case: maps app), you can do that as well. 如果您希望进行更高级的操作,例如在后台跟踪用户的位置(用例:地图应用),您也可以这样做。

You can learn more about it in this blog post from Xamarin . 您可以在Xamarin的博客文章中了解更多相关信息。

We used Xamarin-Forms-Labs to do this. 我们使用Xamarin-Forms-Labs来做到这一点。 Works perfect with Xamarin.Forms on all platforms. 在所有平台上与Xamarin.Forms完美配合。

For more information: Geolocator 有关更多信息: Geolocator

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

相关问题 如何在Xamarin.Forms中为IOS平台创建更改UITableViewCellSelectionStyle - How do I create change the UITableViewCellSelectionStyle for IOS platform in Xamarin.Forms Xamarin.Forms(以PCL代码从平台项目中读取文件) - Xamarin.Forms (Read file from platform project in PCL code) 如何从Xamarin.Forms应用程序修改平台特定的属性? - How do you modify platform specific properties from a Xamarin.Forms application? Xamarin.Forms iOS 中的 DateTimePicker - DateTimePicker in Xamarin.Forms iOS Xamarin Forms:如何在 Xamarin ios 应用程序中检查 GPS 是打开还是关闭? - Xamarin Forms: How to check if GPS is on or off in Xamarin ios app? 使用Xamarin.Forms通过iOS和Android上的GPS事件自动启动应用程序 - Automatically start an app through GPS events on iOS and Android with Xamarin.Forms 通过GPS,iOS跟踪用户 - Track user through GPS ,ios iOS 15 更新后,iOS 平台中 Xamarin.forms 中的导航栏颜色变化问题 - Navigation bar colour change issue in Xamarin.forms in iOS platform after iOS 15 update 如何在IOS的xamarin.forms中将单个ContentPage的方向从纵向更改为全部(横向/纵向)。 - How to change orientation from Portrait to All (Landscape/Portrait both) for the single ContentPage in xamarin.forms for IOS? 如何在iOS中设置Xamarin.Forms SearchBar的样式? - How can I style the Xamarin.Forms SearchBar in iOS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM