After upgrading iPhone to the iOS version 16, ARKit having issue with ARScreen CameraTrackingState. TrackingState is going to .notAvailable and .limited(initializing) state and never returning to tracking state .normal.
Whereas for iOS 15.6, TrackingState is going to .notAvailable and .limited(initializing) state and .limited(relocalising ) and then .normal. Relocalization state is also handled whenever it going to the interruption.
func sessionShouldAttemptRelocalization(_ session: ARSession) -> Bool {
let configuration = ARWorldTrackingConfiguration()
configuration.planeDetection = [.horizontal,.vertical]
session.run(configuration, options: [.resetTracking, .removeExistingAnchors])
return true
}
Require help regarding this. Is there any upgrade or issue with iOS version 16?