如何在 revenuecat 上使用超过 1 个产品?

How to use more than 1 offering on revenuecat?

我正在使用 revenuecat 但遇到问题,我无法在我的应用程序中加载我的两个产品(每月和每年订阅),因为只有一个是最新的,如果我将年度订阅更改为当前我可以加载它但不是每月。如何在我的应用程序中使用我的两个产品?

听起来您需要:

  1. 将两种产品添加到同一产品中。

    Offerings allow you to choose which combination of products are shown to a user on your paywall or upsell screen. For example your default Offering may contain a monthly and annual subscription, but you might want to experiment with Offerings with a different combination of subscription durations, trial lengths, prices, etc. (https://docs.revenuecat.com/docs/entitlements#section-offerings)

  2. 直接通过 ID 访问 "non-current" 产品,例如offerings["my_offering_identifier"]

    In practice, you may not want to display the default current Offering to every user and instead have a specific cohort that see a different Offering. For example, displaying a higher priced Offering to users that came from paid acquisition to help recover ad costs, or a specific Offering designed to show iOS Subscription Offers when a user has cancelled their subscription. This can be accomplished with custom Offering identifiers (https://docs.revenuecat.com/docs/displaying-products#section-custom-offering-identifiers)