Access location data

Is it possible to access location data from Unity?

Input.location.Start(); doesn't seem to kick in after being called - status keeps the value of LocationServiceStatus.Initializing.

I did add the appropriate permissions and requested them in runtime:

I know that ML2 doesn't have GPS receiver, but it does have an option to select the mock location app within Developer options (settings) thus I figured the Location API should be accessible.

Any luck with location data on ML2 anyone?

Hi @rafal.legiedz,

I have reached out to our team regarding this issue and I will report back as soon as I learn more.



That would be most helpful. Thanks.

Were you able to select which app you wanted to use as a Mock Location provider in the System Developer Settings? Are you using an existing provider or creating a custom one?

I was able to set it to Trimble Mobile Manager (third-party):

@kbabilinski any news on that?

Hi @rafal.legiedz,

Could you please provide a few details to help us get you a solution?

  • Unity Editor version
  • ML2 OS Version
  • ML SDK Version
  • Development OS (e.g. Mac, Windows)


  • Unity version: 2022.3.18
  • ML2 OS version: 1.5.0
  • ML SDK version: 2.0.0
  • Development OS: MacOS

@etucker @kbabilinski here's the repo with a sample app, if run on ML2 one could see in logcat that LocationService ain't initializing within a given 20s timeout

Hi @rafal.legiedz,

Thank you for providing this sample project. I will be sure to take a deeper look.