Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Get Gps data in the background

Discussion in 'Editor & General Support' started by unity_Tsz-0O-xkIpA2Q, Apr 11, 2021.

  1. unity_Tsz-0O-xkIpA2Q

    unity_Tsz-0O-xkIpA2Q

    Joined:
    Oct 28, 2020
    Posts:
    7
    I have shon much on the Internet searched for it. Unfortunately, I have found nothing about it. Is there really no way to create an app that queries the gps data in the background and sends it to firebase? I have already created an app that does exactly that. However, only when it is open.
     
  2. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    36,336
    Android and iOS have separate background modes that require different entitlements and permissions to be set.

    All of this functionality is external to Unity.

    You can google for background modes for either platform and there are both developer documentation as well as tutorials for doing such an integration to the underlying operating system, based on which target you're building for.