Android Question Live location of user

Discussion in 'Android Questions' started by Almog, Feb 22, 2019.

  1. Almog

    Almog Active Member Licensed User


    I just discovered an option for anyone to share his live realtime location with google maps app

    Does anybody know if there is an option to get the user only to accept the location sharing(so the user don't need to open the app, click this option, add people - the app will set the parameters and the user will only need to accept that)?

    And if not, does anybody have an advice to how to get the live location of the user? (Maybe with some API?) ?

    Thanks in advance...
    rodsilla likes this.
  2. DonManfred

    DonManfred Expert Licensed User

    Use GPS. A Event is raised when the Position changes.
    Almog and BillMeyer like this.
  3. Almog

    Almog Active Member Licensed User

    Thank you DonManfred!

    Do you know a way to share/send the location (got from an event raised when the Position changes) to another device, without a server (for the other device to get your location)?

    Thanks in advance
  4. Erel

    Erel Administrator Staff Member Licensed User

    Assuming that the two devices are not in the same local network then you will need a server or an online MQTT broker.
    Almog likes this.
  5. Almog

    Almog Active Member Licensed User

    Thank you:)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice