gpt4 book ai didi

android - 应用内结算是否需要在用户设备上安装 Google Play 服务?

转载 作者:行者123 更新时间:2023-11-29 01:15:53 34 4
gpt4 key购买 nike

setup docs对于应用内结算显示,您需要将应用内结算库添加到您的 Android 项目中。据推测,这会调用 Google Play 的服务器来代表您的应用查询和进行应用内购买。

setup docs对于使用 Google Play API,请不要提及应用内结算;而如果您想展示广告或使用 Google Analytics,则必须添加对 Google Play 的依赖。

那么,将这 2 条信息放在一起,这是否意味着您的应用不需要需要用户设备上存在 Google Play 服务,您的应用才能成功使用应用内结算?我怀疑答案是“不,您不需要安装 Google Play 服务”,但最好能确认这一点。

最佳答案

用户的设备必须具有 Google Play 服务才能使用应用内结算。

Your application accesses the In-app Billing service using an API that is exposed by the Google Play app that is installed on the device. The Google Play app then conveys billing requests and responses between your application and the Google Play server. In practice, your application never directly communicates with the Google Play server. Instead, your application sends billing requests to the Google Play app over interprocess communication (IPC) and receives responses from the Google Play app. Your application does not manage any network connections between itself and the Google Play server.

In-app Billing Version 3 is the latest version, and it maintains very broad compatibility across the range of Android devices. In-app Billing Version 3 is supported on devices running Android 2.2 (API level 8) or higher that have the latest version of the Google Play app installed (a vast majority of active devices).

您可能还想查看 In-app Billing Version Notes :

The In-app Billing API is versioned, with each version offering additional features to your app. API support is provided by the Google Play Store app. On most devices, the Google Play Store app is updated automatically to support newer versions of the API.

希望这对您有所帮助!

关于android - 应用内结算是否需要在用户设备上安装 Google Play 服务?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39730968/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com