VPS breaks if Unity library is unloaded and then loaded again

I have a Unity application that is integrated into an iOS app using Unity as a library. This application uses ARFoundation as well as Niantic Spatial Platform for an AR experience. This works well the first time the Unity library is loaded. However, if I unload the UnityPlayer once (going back to the regular native app) and then start it again, Lightship doesn’t work correctly anymore. General AR tracking still works but it is unable to find a location using VPS. What could I do about that?

I’ve tried the RestartSubsystemAsyncCoroutine(); on the LocationManager, but it doesn’t help. Any function to completely reload the VPS system?

Solved it myself. Call LoaderUtility.Initialize() any time the Unity Player is reloaded.

This topic was automatically closed 2 hours after the last reply. New replies are no longer allowed.