Logic: How does a friend locator app work?

2

I'm studying mobile development and painted a question: How does an app that locates real-time friends on the map?

Example: An app that shows on the map where your friends are that tb has the app, how far they are and location on the map.

Does the app send the data of each to the server and the server updates this data from time to time? Does it roll in the background? I would like to understand this logic of operation.

Hugs!

    
asked by anonymous 25.09.2015 / 15:50

1 answer

3

In general:

  • The app collects from time to time via geolocation API the coordinates of all users , and sends the result to a central server. Implementations may vary, however a service is used for collection .
  • When you access the app, it requests the server - send me the current coordinates of users A, B, C, ..., Z, as well as their distances relative to my .
25.09.2015 / 16:00