Skip to main content

Hello,

I want to have two separate paywalls for my app. One for subscriptions and for one one-time purchases. I have created both paywalls in my RevenueCat account. However, when I use the RevenueCatUI.presentPaywallIfNeeded() function with different strings for offering identifiers, I get every time the default offering. In other words, the second paywall does not show even through I have put the correct offering identifier. Do you know how to achieve the behavior I described above?

Solved, just do not use RevenueCatUI.presentPaywallIfNeeded(). Use RevenueCatUI.presentPaywall() instead and specify the offering you want that twill override the behavior. You can get the offering through Purchases.getOfferings() API and then select the one you need.