gpt4 book ai didi

android - 在库/SDK 中提供应用内结算

转载 作者:行者123 更新时间:2023-11-29 01:14:28 25 4
gpt4 key购买 nike

关于 Google groups 有一个问题:

Our main app offers In-App Billing for different advanced features. Recently we've wrapped our code in an AAR file which offers some basic functionality for free, but we would like to offer In App Purchases for advances features. Since we will be used by other applications as an SDK, and those applications might have their own IAB implementations and their own SKUs, we aren't sure if there is a way to still use the same Application ID and SKUs defined for our main app when trying to purchase something related only to the SDK part of the code, or would that be against the rules and wouldn't work because of public key used to verify the signature wouldn't match the private key of our main app?

我有同样的问题,所以问题仍然存在,非常欢迎任何建议。

谢谢!!

最佳答案

we aren't sure if there is a way to still use the same Application ID and SKUs defined for our main app when trying to purchase something related only to the SDK part of the code

如果您通过应用程序 ID 表示打包,则在将应用程序上传到 google play 时无法完成此操作。每个应用程序都必须有自己的包(应用程序 ID)。然后,每个应用程序都会有一个不同的 base 64 key ,并使其他应用程序无法访问应用程序内项目。

对于可能的解决方案:

(这是基于我正确理解了问题)

Our main app offers In-App Billing for different advanced features.[...] Since we will be used by other applications as an SDK[...]

WordPress 和设计示例:

我使用 stargazer 主题(父主题),它有许多子主题(子主题)。这些设计中的每一个都有覆盖现有设计的小到大的变化,但不包含原始设计中的所有代码,并且需要安装父级才能工作。没有父级,它就没有必要的主代码(或 SDK)来工作。

因此,如果用户希望子应用使用带 IAB(应用内计费)的父应用作为某物的 SDK,则需要安装父应用才能运行。没有父应用程序,子应用程序将无法正常工作。如果它访问由父应用程序创建和分发的功能,则有很多通信机制(用于应用程序间通信(具有功能数据的父子,用于购买的功能)),但子应用程序将从主应用程序获取数据并在子应用程序中解锁本地功能。

此处的父应用基本上会提供应用内购买以改进功能。但是,我不确定这些功能如何。考虑到前面的 wordpress 示例,子应用程序会覆盖主应用程序的功能实现:

主应用程序中有些东西可以使用,但 children 会更改这些功能(覆盖)主应用程序。

关于android - 在库/SDK 中提供应用内结算,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40722089/

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