Skip to main content
Solved

Two separate paywalls with RevenueCatUI.presentPaywallIfNeeded()

  • July 28, 2024
  • 1 reply
  • 80 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 though I have put the correct offering identifier. Do you know how to achieve the behavior I described above?

Just to clarify, the user does not have the entitlements so the paywall shows.

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.

View original
Did this post help you find an answer to your question?
This post has been closed for comments

1 reply

Forum|alt.badge.img+1
  • Author
  • Helper
  • 2 replies
  • Answer
  • 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.


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