ARTrackingStateReasonRelocalizing
The AR session is attempting to resume after an interruption.
Declaration
ARTrackingStateReasonRelocalizingDiscussion
ARKit cannot track device position or orientation when the session has been interrupted (for example, by dismissing the view hosting an AR session or switching to another app). When resuming the session after an interruption, you cannot be certain that the world coordinate system (used for placing anchors) matches the device’s real-world environment.
If your session or view delegate implements the sessionShouldAttemptRelocalization(_:) method and returns true, ARKit attempts to reconcile pre- and post-interruption world tracking state. During this process, called relocalization, world tracking quality is ARTrackingStateLimited, with ARTrackingStateReasonRelocalizing as the reason for limited quality.
If successful, the relocalization process ends after a short time, tracking quality returns to the ARTrackingStateNormal state, and the world coordinate system and anchor positions generally reflect their state before the interruption.
However, the speed and success rate of relocalization can vary depending on real-world conditions. You may wish to hide AR content or disable UI during relocalization, and reset tracking if relocalization doesn’t succeed within a time frame appropriate for your app.