Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

"Session.RequestApkInstallation" returns no result. #786

Open
pjsmemo opened this issue Jul 6, 2021 · 0 comments
Open

"Session.RequestApkInstallation" returns no result. #786

pjsmemo opened this issue Jul 6, 2021 · 0 comments

Comments

@pjsmemo
Copy link

pjsmemo commented Jul 6, 2021

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]

  • The app I'm developing starts with a Native app and runs Unity when needed.
  • Process separation is a must in our app.
  • see "android:process=":unity"
<activity
   android:name=".ui.activity.UnityPlayerActivity"
   android:autoRemoveFromRecents="true"
   android:excludeFromRecents="true"
   android:configChanges="mcc|mnc|....
   android:exported="false"
   android:process=":unity"
   android:screenOrientation="sensorLandscape"
   android:theme="@style/VrActivityTheme">

Thank you.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant