android - 跨应用程序的分层订阅

标签 android in-app-billing in-app-subscription

是否可以在 android 中使用跨应用程序的分层订阅模型?我有 3 个应用程序 A、B 和 C,它们都需要订阅才能使用。如果我订阅了 A,我可以使用 A 但不能使用 B 或 C。如果我订阅了 B,我可以使用 B 和 A,但不能使用 C。如果我订阅了 C,我可以使用所有应用程序。换句话说,级别是 C>B>A。

我曾尝试使用 android 计费库从 B 应用程序访问 A 应用程序的订阅,但没有成功。

in app subscriptions documentation 说:

You can implement your own solution for sharing subscriptions across as many different apps or products as you want. For example, you could sell a subscription that gives a subscriber access to an entire collection of apps, games, or other content for a monthly or annual fee. To implement this solution, you could add your own business logic to your app to determine whether the user has already purchased a given subscription and if so, allow access to your content.

是否可以仅使用应用程序内部的 android 应用程序内结算 API 进行设置?这是否在使用 Google Play 处理购买和后端跟踪订阅之前设置?主要问题是:是否可以从一个应用访问有关我管理的另一个应用的订阅信息?

最佳答案

一个选项必须让每个应用程序提供一个 Content Provider每个应用会在其中查找其他应用并确认订阅状态。

另见: How to restrict content provider data across applications

缺点是每个应用程序都需要安装在设备上。如果它是基于服务器的,那么某人可以在一台设备上购买对应用程序 C 的订阅,并且具有相同订阅者身份的应用程序 B 和应用程序 A 在不同的设备上。

关于android - 跨应用程序的分层订阅,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48964143/

相关文章:

android - 从 getBuyIntent 返回的 PendingIntent 始终为空

android - 如何在inapp v3 android中获取订阅到期日期

Android 收到 Retrofit 和 Retrofit 适配器的 DuplicateFileException 错误

java - 在微调器中选择项目后如何获取微调器值

android - flutter Android : Unable to fetch in-app products from Google Play

android - 如何从应用内订阅获取订阅价格

android - 如何在inapp v3 android中获取订阅到期日期

ios - 是否有 API 可以告诉谁取消了他们的应用内购买?

android - 在android项目上需要('react-native-xmpp'时出错)

android - proguard 在导出已签名的应用程序包时返回错误代码 1