What platform are you using it on? If you are using Android make sure you have a location provider that updates the location via ArchitectView.setLocation().
On iOS the callback function is called whenever the first location is avaiable. Depending on your current environment (indoor, outdoor, wifi available, gps signal strong etc.) this might not immediately be available.
R
Rasanga Perera
said
about 10 years ago
How do I retrieve the user's current location out of location context (it is not called beginning of the script execution)?
W
Wolfgang Damm
said
about 10 years ago
Have a look at AR.context.onLocationChanged. You can set any callback function to this trigger and get notifications whenever the location changes.
Rasanga Perera