问题
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