Skip to main content
Question

Paywall V2 doesn't honor "displayCloseButton" parameter

  • February 21, 2025
  • 3 replies
  • 53 views

Forum|alt.badge.img+6

I’m building a paywall that I would like to have a conditional ‘Close’ button on - in some cases it should be a hard paywall, but in others, I want the user to opt out.

 

I’m showing the paywall with `PaywallView(offering: offering, displayCloseButton: <logic-goes-here>)`, but even if I send in a hardcoded true or false, it makes no difference.

 

I’ve tried this with my Paywall equipped with a ‘Navigate Back’ button, and without, but the ‘displayCloseButton’ parameter never has any effect.

This post has been closed for comments

3 replies

Forum|alt.badge.img
  • New Member
  • 4 replies
  • February 24, 2025

I am also facing similar problems with displaying of close button. Even after hardcoding the value to true  don’t see the close button in the paywall. 

PaywallView(
     fonts: DefaultPaywallFontProvider(),
     displayCloseButton: true
)


For now I have added a custom close button in the footer using navigation back action.
 


joan-cardona
RevenueCat Staff
Forum|alt.badge.img+6
  • RevenueCat Staff
  • 313 replies
  • February 28, 2025

Hi,

Are you seeing this in v2 paywalls? For the new version the close button parameter has no effect, here’s what we state in the documentation:


Paywalls v2 does not require the displayCloseButton parameter (or equivalent for other platforms), and it will have no effect if used, since close buttons can be optionally added directly to your paywall as a component if desired.

 

You can add it as a component if needed. Does that work for your case?


Forum|alt.badge.img
  • New Member
  • 4 replies
  • February 28, 2025

Thanks ​@joan-cardona. This answers my question. I am using V2 Paywalls.


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