Hi all!
I'm working with Unity as a Library and Vuforia for a while, and I'm facing an issue just for iOS
When I start the app for the first time, the OS asks me to grant access to the camera, and after allowing it, it works fine, but when I start the app for all other times, Vuforia fails to initialize, and the error message in Xcode console is this:
2019-10-29 12:41:37.618405-0300 NativeiOSApp[1053:119833] Task <FB6FBF84-2115-4EBE-8C95-3EB50BA141DC>.<1> load failed with error Error Domain=NSURLErrorDomain Code=-1005 "The network connection was lost." UserInfo={_kCFStreamErrorCodeKey=54, NSUnderlyingError=0x281290f30 {Error Domain=kCFErrorDomainCFNetwork Code=-1005 "(null)" UserInfo={_kCFStreamErrorCodeKey=54, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <FB6FBF84-2115-4EBE-8C95-3EB50BA141DC>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=( "LocalDataTask <FB6FBF84-2115-4EBE-8C95-3EB50BA141DC>.<1>" ), NSLocalizedDescription=The network connection was lost., NSErrorFailingURLStringKey=https://usageservice.prod.vuforia.com/v2/venm, NSErrorFailingURLKey=https://usageservice.prod.vuforia.com/v2/venm, _kCFStreamErrorDomainKey=1} [-1005] Uploading Crash Report
InvalidScreenOrientationException: Unsupported screen orientation Unknown at Vuforia.RuntimeExtensionMethods.ToVuforiaScreenOrientation (UnityEngine.ScreenOrientation orientation) [0x00000] in <00000000000000000000000000000000>:0 at Vuforia.IOSUnityPlayer.SetUnityScreenOrientation () [0x00000] in <00000000000000000000000000000000>:0 at Vuforia.IOSUnityPlayer.InitializeSurface () [0x00000] in <00000000000000000000000000000000>:0 at Vuforia.IOSUnityPlayer.ContinueInit () [0x00000] in <00000000000000000000000000000000>:0 at Vuforia.VuforiaRuntime.InitInternal () [0x00000] in <00000000000000000000000000000000>:0 at Vuforia.VuforiaRuntime.InitVuforia () [0x00000] in <00000000000000000000000000000000>:0 at AppCore.Controllers.TargetsSetup.Start () [0x00000] in <00000000000000000000000000000000>:0 (Filename: currently not available on il2cpp Line: -1)
2019-10-29 12:23:35.587820-0300 NativeiOSApp[1046:117006] User pre-granted access to the camera 2019-10-29 12:23:35.588075-0300 NativeiOSApp[1046:117006] ERROR/AR(1046) 2019-10-29 12:23:35: Vuforia is already initialized. You need to deinitialize before initializing again. Vuforia initialization failed Vuforia initialization failed
In this particular project, the AR scene is an AssetBundle
I configured both projects' (Native and Unity) device orientation and the AssetBundle to Portrait, Landscape left and Landscape right, but Vuforia refuses to recognize this setup...