Skip to main content
Solved

Two separate paywalls with RevenueCatUI.presentPaywallIfNeeded()

  • 28 July 2024
  • 1 reply
  • 24 views

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.

Solved, just do not use RevenueCatUI.presentPaywallIfNeeded(). Use RevenueCatUI.presentPaywall() instead and specify the offering you want that twill override the behavior.