简体   繁体   English

ARCore:如何让我的应用在 GPlay 上仅对支持 Depth API 的设备可用?

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

I have an app that uses Depth API.我有一个使用深度 API 的应用程序。

As mentioned here: https://developers.google.com/ar/discover/supported-devices如此处所述: https://developers.google.com/ar/discover/supported-devices

Depth API is not supported by all devices that support ARCore.并非所有支持 ARCore 的设备都支持深度 API。

How can I specify in my Manifest (or elsewhere) that my app requires a device compatible with Depth API?如何在我的清单(或其他地方)中指定我的应用程序需要与 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.深度 API 支持的设备 只有深度支持的设备才能在 Google Play 商店中发现需要深度的应用。 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:体验的核心部分依赖于深度 对于使用深度的应用程序部分没有优雅的回退 要将您的应用程序在 Google Play 商店中分发到支持深度 API 的设备,请将以下行添加到您的 AndroidManifest。 xml,除了启用 ARCore 指南中描述的 AndroidManifest.xml 更改:

reference: https://developers.google.com/ar/develop/java/depth/developer-guide参考: 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.我相信,除了 SDK 版本之外,没有办法直接通过您的 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.您可以做的是,Google Play 控制台有一个部分,您可以在其中手动将设备包含/排除到可以在商店中找到您的应用的设备池中。 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.因此,您可以做的是自己列出您想要支持的设备,然后通过将您不想通过 Google Play 控制台直接支持的设备的 rest 列入黑名单来反映此列表.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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