Sunday, November 20, 2022
HomeiOS Developmentios - ARKIT digital camera is just not monitoring state after initialization

ios – ARKIT digital camera is just not monitoring state after initialization


After upgrading iPhone to the iOS model 16, ARKit having problem with ARKit ARSession CameraTrackingState. TrackingState goes to .notAvailable and .restricted(initializing) state and by no means returning to monitoring state .regular. Display screen digital camera preserve exhibiting loading. And when I’m turning digital camera on and off , it reveals the AR mannequin on the display. Examined System: iPhone 12 Professional Max with iOS model 16.0.

Whereas for iOS 15.6, TrackingState goes to .notAvailable and .restricted(initializing) state and .restricted(relocalising ) after which .regular. Relocalization state can be dealt with every time it going to the interruption.

func sessionShouldAttemptRelocalization(_ session: ARSession) -> Bool {

let configuration = ARWorldTrackingConfiguration()

configuration.planeDetection = [.horizontal,.vertical]

session.run(configuration, choices: [.resetTracking, .removeExistingAnchors])

return true

}

Please counsel some answer as I’m not capable of debug this. Is there any improve or problem with iOS model 16?

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments