为一个用户提供多个订阅的最佳方式(iOS、Android) [英] Best way to offering multiple subscriptions for one user (iOS, Android)

查看:54
本文介绍了为一个用户提供多个订阅的最佳方式(iOS、Android)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人有为应用实现多个订阅模型的经验吗?我无法找到有关此主题的适当文档.创建应用内订阅模型的最常见方法是每个用户一个订阅.但我想为每个项目提供一个订阅(在我的应用程序中).这意味着如果用户想要订阅多个项目,他们可以创建多个订阅.每个项目在功能上都是相同的.

Does anyone have experience implementing multiple subscriptions model for an app? I wasn't able to find proper documentation about this topic. The most common way to create in-app subscription model is one-subscription per one-user. But I want to offer one-subscription per one-item(in my app). This means that users can create multiple subscriptions if they want to subscribe to multiple items. Each item is functionally the same.

例如,如果应用是宠物位置跟踪器,并且想要同时跟踪宠物 A 和 B,则用户必须分别订阅 A 和 B.这意味着总共有 2 个订阅.

For example, If the app is a pet location tracker and wants to track both pet A and B, the user has to subscribe to each A and B respectively. It means a total of 2 subscriptions.

请给我解释一下.谢谢.

Please explain it to me. Thanks.

推荐答案

从未想过这样的用例,但对于 iOS,您可以创建多个订阅.因此,您可以创建订阅 PetA、PetB、PetC 等.但是,我认为您需要一种更动态的方法,您可以在其中创建 Pet 订阅,并且用户可以随心所欲地购买.据我所知这是不可能的.

Never thought about such a use case, but for iOS you can create multiple subscriptions. So you could create a subscription PetA, PetB, PetC and so on. But, I think you asked for a more dynamic approach where you create a Pet subscription and the user can buy as much as he likes. As far as I know this isn't possible.

另一种方法是创建订阅层次结构:onePet、twoPets、threePets 等等.然后,您的用户可以根据他想要跟踪的宠物数量在这些潜艇之间提高或降低等级.如果您还想提供不同的持续时间,可能会变得混乱.

A different approach would be to create a subscription hierarchy: onePet, twoPets, threePets and so one. Your user can then up or down grade between those subs depending on how many pets he wants to track. Could get messy if you also want to offer different durations.

第三种方法可能是使用可消耗的 IAP.这些可以根据用户喜欢的频率购买,但缺点是您需要自己跟踪有效期,并且无法在多个设备之间自动同步.

A third approach could be to use consumable IAPs. These can be purchased as often as the user likes, but have the disadvantage that you need to keep track of the validity period on your own and they can't be synced automatically between multiple devices.

对于您的宠物示例,我将采用第二种方法并提供 onePet、twoPet、threePet 和 unlimitPet 订阅.只要您不提供无休止的持续时间变化,这是最可维护的方法.此外,这会自动与用户的所有设备同步,如果您愿意,您还可以支持家庭共享.

For your pet example I would go for the second approach and offer a onePet, twoPet, threePet and a unlimitPet subscription. This is the most maintainable approach as long as you do not offer endless duration variations. Also this gets synced automatically with all devices of the user and if you like you can also support family sharing.

这篇关于为一个用户提供多个订阅的最佳方式(iOS、Android)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆