Skip to content
Advertisement

ARCore: How to make my app available on GPlay only to devices that support Depth API?

I have an app that uses Depth API.

As mentioned here: https://developers.google.com/ar/discover/supported-devices

Depth API is not supported by all devices that support ARCore.

How can I specify in my Manifest (or elsewhere) that my app requires a device compatible with Depth API ? Indeed, I don’t want to see my app to be downloaded by users who can’t use it!

Thanks

Advertisement

Answer

Depth API-supported devices Only devices that are depth-supported should be able to discover depth-required apps in the Google Play Store. Discovery should be limited to depth-supported devices when:

A core part of the experience relies on depth There is no graceful fallback for the parts of the app that use depth To limit distribution of your app in the Google Play Store to devices that support the Depth API, add the following line to your AndroidManifest.xml, in addition to the AndroidManifest.xml changes described in the Enable ARCore guide:

<uses-feature android:name="com.google.ar.core.depth" />

reference: https://developers.google.com/ar/develop/java/depth/developer-guide

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement