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

我与影子孤独终老i 提交于 2019-12-05 02:57:27

问题


I just went through this link

to track GPS co-ordinates of current location as User walks with a xamarin.forms app (iOS platforms)

But I could not find how to do it, as I am born new to xamarin.forms,

Can we do this in xamarin.forms or should I Create a xamarin ios project?

Any links/tutorials to track the user location through xamarin.forms for iOS platfomrs would be appreciated, thanks in advance.


回答1:


We used Xamarin-Forms-Labs to do this. Works perfect with Xamarin.Forms on all platforms.

For more information: Geolocator




回答2:


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.

The API is literally a few lines, and is as simple as calling one method. 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.



来源:https://stackoverflow.com/questions/31178068/how-to-track-the-gps-coordinates-as-user-walks-from-xamarin-forms-for-ios-platf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!