Skip to main content
Question

React Native Hard Paywall

  • Dec 14, 2023 10:07 AM UTC
  • 5 replies
  • 681 views

Forum|alt.badge.img+6

I need a Hard Paywall with React Native. The close button causes a lot of problems.

One solution is to create a button that says “Next” that will launch the Paywall if needed.

This some what works, but the user is still allowed to close the paywall after they pay, and while its still processing the payment which takes up to 15 seconds. Then the flow is completely mixed up. I don’t get any feedback until the payment has completed and changed their entitlement.

 

Is there any solution for this?

This post has been closed for comments

5 replies

sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • Dec 18, 2023 6:58 PM UTC

Hey @VR93,

Would it help if you could hide the paywall close button and dismiss it yourself? I can check with the team if this is on our roadmap.


Forum|alt.badge.img+6
  • Author
  • New Member
  • Dec 18, 2023 10:41 PM UTC

Is it possible for RN users to dismiss your paywall? I thought that part was made in Swift, so I didn’t think there was a way for me to control it.

Right now I have an “Activate” button that you can’t get past until you pay. This is a valid work around, the problem I’m seeing is that users can easily accidentally dismiss the paywall WHILE the payment is processing.

While I think having a Hard Paywall is absolutely essential down the road, a more immediate solution would be to simply disable the close button while the payment is processing. That would solve the major problem.

 

 


sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • Jan 16, 2024 12:37 AM UTC

Hey @VR93,

Very sorry for the delay here! It looks like we’ve shipped a fix for this (we now disable the X button during a purchase) on the latest React Native SDK. Can you update and let me know if it works for you?


Forum|alt.badge.img+5

Hey @VR93,

Very sorry for the delay here! It looks like we’ve shipped a fix for this (we now disable the X button during a purchase) on the latest React Native SDK. Can you update and let me know if it works for you?

That’s not a hard paywall because you can dismiss by swiping down


sharif
RevenueCat Staff
Forum|alt.badge.img+9
  • RevenueCat Staff
  • Jun 7, 2024 5:29 PM UTC

Hey @luke-pighetti,

Apologies for the delay here, our notification system doesn’t work well for old posts. Next time I recommend opening a new post and referring to this post, we’ll get notified much quicker!

I don’t think it’s possible at the moment to prevent that swipe to dismiss behavior but I’ll ask the mobile engineering team about it.