CameraTrackingState is not detecting: ARKit

After upgrading iPhone to the iOS version 16, ARKit having issue with ARKit ARSession CameraTrackingState. TrackingState is going to .notAvailable and .limited(initializing) state and never returning to tracking state .normal. Screen camera keep showing loading. And when I am turning camera on and off , it shows the AR model on the screen. Tested Device: iPhone 12 Pro Max with iOS version 16.0.

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

  }

Please suggest some solution as I am not able to debug this. Is there any upgrade or issue with iOS version 16?

CameraTrackingState is not detecting: ARKit
 
 
Q