Include the following details (edit as applicable):
- Issue category: Understanding ar session start-up
- Device type & OS version: iOS
- Issue Environment : On Device
- Xcode version: 13.4.1
- ARDK version: 2.0
- Unity version: 2020.3.4
I have some data to save in my app that should save in iOS in the background when the app is paused (using OnApplicationPause with its bool). This works fine, except that the app pauses a lot during the normal course of start up and it’s not necessary to save the data then and this even causes a slow down in the start up process. I added a bool check called saveOnPause
that starts out false and gets toggled to true on the ARSessionFactory.SessionInitialized event. This takes care of most of the unnecessary saves during start up pauses, but still misses one that appears to happen during the ARWorldTrackingTechnique, or maybe in response to the request for camera access. Is there something in the ARSessionFactory or the IARSession that I can access that would signal the end of start up when I can finally cue my app to begin saving on pauses? Thanks!