Skip to main content
Solved

Two separate paywalls

  • July 28, 2024
  • 1 reply
  • 248 views

Forum|alt.badge.img+1

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?

Best answer by Marxwil

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.

View original
This post has been closed for comments

Forum|alt.badge.img+1
  • Helper
  • July 29, 2024

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings