I’m working on an iOS app with ARKit, and I need to implement a solution for resuming the ARKit session after the app has been force-quit and relaunched. As ARKit does not inherently support automatic resumption after force quitting, I understand that I need to handle the session state preservation and restoration manually.
-
Enable session state preservation in an ARKit view controller.
-
Implement the necessary ARSessionDelegate methods to handle session list item state changes and interruptions.
-
Save and restore the AR session state during relevant app lifecycle events in the app delegate.
-
Handle data persistence and restoration for any anchors or objects in the AR scene.
Any insights, code snippets, or best practices would be greatly appreciated.
Thank you!




