简体   繁体   中英

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

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:

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

I believe there's no way of explicitly telling your app not to be downloaded based on anything other than SDK version directly through your Manifest.

What you could do, is that the Google Play Console has a section where you can manually include/exclude devices into the pool of devices that can find you app in the store. I do have to warn you that this process is VERY manual , both for exclusions and inclusions altogether.

Therefore, what you could do, is to make a list of the devices that you want to support on your own, and then reflect this list by blacklisting the rest of the devices that you don't want to support directly through your Google Play Console.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM