Log in or register to post comments

Re-Initialization issue with UaaL on iOS

SDK 10.0
October 14, 2021 - 10:00am #1

We have a React Native app that uses Unity as a library and Vuforia to integrate AR functionalities, after updating to Unity 2020 and Vuforia 10 we've found an issue on iOS: the first time we open Unity from RN everything works fine but if we unload unity (via Application.Unload()) and then reopen it the screen remains black, as if the camera wasn't working. This only happens on iOS, android doesn't have this problem.

I've tried to Deinit Vuforia before Unload Unity, but nothing changes

I can Deinit and Initialize Vuforia without problems, seems the issue is something with the Unity Unload

I've tried adding a custom log to the initialization:

public void Start() {
    VuforiaApplication.Instance.OnVuforiaInitialized += Test;
}

public void Test(VuforiaInitError error) {
    Debug.Log("VUFORIA INIT:  "+error);
}

public void UnloadUnity () {
    Debug.Log("Unload Unity Received");
    if(VuforiaApplication.Instance.IsInitialized) {
        VuforiaApplication.Instance.Deinit();
    }
    Application.Unload();
}


public void Init() {
    if(!VuforiaApplication.Instance.IsInitialized) {
        VuforiaApplication.Instance.Initialize();
    }
}



This is an extract of what I get:

77788+0200 [897:477445] INFO/AR(897) Vuforia build version: 10.2.5+9122
2021-10-14 18:02:50.465132+0200 [897:477445] INFO/AR(897) Vuforia Fusion: Detected and enabled use of ARKit
Vuforia Initialized
Vuforia Started
VUFORIA INIT:  NONE
Vuforia Stopped
Vuforia Deinitialized
2021-10-14 18:03:18.127137+0200 [897:477445] INFO/AR(897) Vuforia build version: 10.2.5+9122
2021-10-14 18:03:19.561163+0200 [897:477445] INFO/AR(897) Vuforia Fusion: Detected and enabled use of ARKit
Vuforia Initialized
Vuforia Started
VUFORIA INIT:  NONE
VUFORIA INIT:  NONE
Vuforia Stopped
Vuforia Deinitialized
75919+0200 [897:477445] INFO/AR(897) Vuforia build version: 10.2.5+9122
2021-10-14 18:03:45.541462+0200 [897:477445] INFO/AR(897) Vuforia Fusion: Detected and enabled use of ARKit
Vuforia Initialized
Vuforia Started
VUFORIA INIT:  NONE
VUFORIA INIT:  NONE
VUFORIA INIT:  NONE
Vuforia Stopped
Vuforia Deinitialized
42294+0200 [897:477445] INFO/AR(897) Vuforia build version: 10.2.5+9122
2021-10-14 18:21:56.707758+0200 [897:477445] INFO/AR(897) Vuforia Fusion: Detected and enabled use of ARKit
Vuforia Initialized
Vuforia Started
VUFORIA INIT:  NONE
VUFORIA INIT:  NONE
VUFORIA INIT:  NONE



It seems like every time I go back to RN and relaunch unity Vuforia tries to initialise multiple times? or is that normal and the issue is something else completely?

Any help would be appreciated!



Version details:

Unity 2020.3.15f2

Vuforia 10.2.5

Xcode 12.5.1

SDK Version: 
Log in or register to post comments