mapbox-unity-sdk icon indicating copy to clipboard operation
mapbox-unity-sdk copied to clipboard

Location service updates are not enabled

Open 1701Tiberius opened this issue 5 years ago • 2 comments

I have a game which is using the LocationBasedGame code to depict the world, but which does not use a device to locate where the user is (I feed coordinates and then transforms after that to find where the user is in the world), but when I do a PC build, I get the same error repeatedly:

Location service updates are not enabled. Check LocationService.status before querying last location.

I know this is caused because PCs don't really use Unity's location services, but I don't need this data. How do I change the configuration of Mapbox, or short-circuit the location code to allow this game to build on PC?

I've already burned lots of hours on this challenge without success.

Kindest Regards, Garry

1701Tiberius avatar Jun 09 '20 06:06 1701Tiberius

It's been 14 days with no reply. Is there a better place to ask this question?

1701Tiberius avatar Jun 22 '20 22:06 1701Tiberius

@1701Tiberius wow I'm really sorry about this Garry, I totally missed this :(

If you are not using location data at all (or you are just providing it yourself through a custom script), you can just remove InitializeMapWithLocationProvider script from Map gameobject I believe?

brnkhy avatar Apr 16 '21 09:04 brnkhy