[英]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和Windows的Geolocator插件也是以跨平台方式处理位置服务(例如获取用户当前位置)的好方法。
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.