google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 403 forks source link

"Session.RequestApkInstallation" returns no result. #786

Open pjsmemo opened 3 years ago

pjsmemo commented 3 years ago

In "HelloAR" received as a sample example, the ARCore APK installation request works well and the result is returned normally.

However, in the environment I am developing (Native and Unity run in different processes), the ARCore APK installation result is not returned normally.

Issue. *When requesting to install ARCore in an environment where Native and Unity processes are separated.

  1. No results other than Success results are returned.
  2. Installation request is not responding since the second time.

Is this a bug? Is it possible to modify it so that other processes can receive the results normally?

[ARCore APK Installation Request Code]

IEnumerator ARCoreAPKInstallRoutine(Action<ApkInstallationStatus> onResult)
{
    AsyncTask<ApkInstallationStatus> installTask = Session.RequestApkInstallation(false);
    CustomYieldInstruction customYield = installTask.WaitForCompletion();
    yield return customYield;

    var result = installTask.Result;

    ApplyARCoreInstallResult(result);

    onResult?.Invoke(result);
}

[AndroidManifest]



Thank you.