ARKit + Unity

Hello,
Currently using this setup to start exploring AR :

Unity 2017.2.0f3

Unity's latest version ARKit plugin

MacOS 10.13.1

Xcode v 9.1

Two different iphone SE, one on iOS11.1.2 and the other on iOS11


The app functions flawlessly in general. However, when the app is paused (sent into background) and resumed, we sometimes get this error :


2017-11-30 10:32:34.828356-0500 [26266:3544921] [Session] Session did fail with error: Error Domain=com.apple.arkit.error Code=102

Required sensor failed." UserInfo={NSLocalizedRecoverySuggestion=Make sure that the application has the required privacy settings., NSLocalizedDescription=Required sensor failed., NSLocalizedFailureReason=A sensor failed to deliver the required input.} ason=A sensor failed to deliver the required input.}

This behaviour is inconsistent and seems to happen when the app needs access to the camera feed and is in conflict with another app / function. It does not cause a crash, a grayish texture is presented instead of the camera feed and the AR (tracking, etc) is shutdown.
Adding a delay before activating the ARKit upon resuming(~2 seconds) seems to prevent this error from happening. But, from testing other apps using ARKit, they seem able to instantly use the camera feed without any delay of the kind.


Any help available would be available to make our final user experience more fluid. Thanks 🙂