Search code examples
iosxamarinxamarin.formstracking

Continuous tracking of users location


I have xamarin.forms application for ios,I need to implement a functionality of continuous tracking of users locations,for example consider two users "A" and "B" now "A" can able to know the location of "B" and "B" Can be able to know the "A's" location at any time,Is there any way to achieve this functionality,please provide any sample or guidelines if it is possible.


Solution

  • If both devices have long distance than using following idea you can track device location remotely.

    Using API implementation, device A and B send a current location to your server through didUpdateLocation method after that from device A get a device B current location and from device B get device A current location so, you can track each device location continuously.

    As per your requirement, you have to call this API.

    e.g call API in some of the time interval is the best way to tacking device location continuously.

    Below link help for background location update service,

    Periodic iOS background location updates How do I get a background location update every n minutes in my iOS application?