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

查看:84
本文介绍了为一个用户(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天全站免登陆