"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Native ARCore functionality

Hello,

I'm using Vuforia Fusion with ARCore 1.6.0. I need to check, if the user has ARCore capable device to enable some ARCore specific functionality. I didn't find a solution using Vuforia SDK so I need to access ARCore library directly. I use following method:

var jc = new AndroidJavaClass("com.google.ar.core");
jc.Call<bool>("ArCoreApk.Availability.isSupported"); 

This works fine in the Unity editor, however if I run the app on the Android device, it throws "ClassNotFoundException" in the first line. It's like the .aar file (core-1.6.0.aar) where is that class is not included in the build for some reason. I'm not sure what I'm doing wrong here.

 

Thanks for your tips.

Hello,

I wonder if this ARCore API call is failing due to Vuforia being attached to the camera. The device camera is a singleton, so if ARCore's API requires being attached to the camera, the issue you're seeing may be related to Vuforia using the camera. Just a thought...

I was thinking of using getActiveFusionProvider() method, but I would still need to call some native ARCore stuff to check, if it is installed and request the install if not.