Topic has a solution and is locked
Topic locked

Programatically Determine if Area Targets Supported on Device

November 4, 2021 - 7:36pm #1
Topic solved

Need to Programatically Determine if Area Targets Supported  on Device?

IOS and Android?

Programatically Determine if Area Targets Supported on Device

November 6, 2021 - 12:05pm #5

Thanks.

Programatically Determine if Area Targets Supported on Device

November 5, 2021 - 12:41pm #4

Hello,

Admittedly not my area of expertise, but I do know that this is typically controlled by the app's manifest file.

Under the assumption that this is a Unity project, please check Google's documentation for additional guidance on how to configure your build settings: https://developers.google.com/ar/develop/unity/enable-arcore

Thanks,

Vuforia Engine Support

Programatically Determine if Area Targets Supported on Device

November 5, 2021 - 12:02pm #3

Good and quick answer. Thanks!

Going to get greedy and ask for more.

Can I tell the difference between for example

Android Device supports AR but Play Services for AR not installed or at right level?

Can I then trigger an install?

 

 

  

 

 

Programatically Determine if Area Targets Supported on Device

November 5, 2021 - 9:59am #2

Hello,

Area Targets is only supported by devices that run ARKit/ARCore, or HoloLens. Considering the former, how you determine support programatically will likely depend upon when you need to perform the check.

If you want to check *before* initializing Vuforia Engine, then you will likely have to use iOS/Android APIs to do it. This is beyond the scope of Vuforia Engine.

If wanting to check *after* Vuforia Engine is initialized, then you can call the GetActiveFusionProvider() Unity API (assuming this is a Unity project) and test the returned enum value: https://library.vuforia.com/sites/default/files/references/unity/namespaceVuforia.html#a247a4d24f56f9b41c42bbf8c78c8a554

If the returned value is PLATFORM_SENSOR_FUSION, then Area Targets should work.

Thanks,

Vuforia Engine Support

Topic locked