Topic: OnlineMapsLocationService.instance always returns "null"

Hi,
Please I have been trying to work with the Online Map's Location Service. My app worked fine with Unity's LocationService but I want to switch. However, whenever I call OnlineMapsLocationService.instance both in the Editor and on any device, I get a Null reference error.
I will appreciate any help on this.

Thank you.

Re: OnlineMapsLocationService.instance always returns "null"

Hello.

There can be three reasons:
1. You do not have Online Maps Location Service component.
Solution: add Online Maps Location Service component.

2.Online Maps Location Service component is disabled.
Solution: enable Online Maps Location Service component.

3. You are trying to use OnlineMapsLocationService.instance in Awake or OnEnable.
Solution: use this in Start or later.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.