Skip to main content
Question

Offering, metadata and paywall (and footerpayall)

  • October 30, 2024
  • 3 replies
  • 58 views

Forum|alt.badge.img

Hi all,

New to RC - in fact, new to front-end and app development altogether. 

I am developing an app using Expo and using RevenueCat for IAP and subscription which from I can see, works quite well.

I see that there’s the meta data for each offering which I can configure and then download from the client side but I can’t see any examples on how I can impact RevenueCatUI.PaywallFooterContainerView / Paywall is rendered?

Is it a supported feature or would I have to manually create a paywall component using the meta data? The documentation shows how to do this on Kotlin only https://www.revenuecat.com/docs/tools/offering-metadata/offering-metadata-examples 

 

Thanks in advance,

Ray. 

This post has been closed for comments

3 replies

Michael Fogel
Forum|alt.badge.img+6
  • Dedicated Contributor
  • 382 replies
  • November 4, 2024

Hey @Ray Hwang !

 

Offer metadata works on the React-Native SDK as well so long as you are on version 6.0.0 and up. Which version of the RevenueCat SDK are you using? To access metadata in react-native, your code should look something like the snippet below:

const offerings = await Purchases.getOfferings();
const current = offerings.current;
if (current) {
  const metadata = offerings.current || {};
  const showNewBenefits = metadata.show_new_benefits;
  const title = metadata.title_strings["en_US"];
  const cta = metadata.cta_strings["en_US"];
}

 

Our paywalls work differently from the metadata, our paywalls will display a certain paywalls to a user specifically based on which offering they are displayed. More info on this can be found here: https://www.revenuecat.com/docs/tools/paywalls

 

Currently you cannot access the metadata the same way with our paywalls built in the RevenueCatUI. 


Forum|alt.badge.img
  • Author
  • New Member
  • 1 reply
  • November 5, 2024

Hi @Michael Fogel thanks for responding! 

Sorry for not being clearer - I can and have been accessing the metadata from within the client. I am using the metadata to render bits and bobs for the products I am upselling. 

The question is about if I can use the metadata to directly change how the Paywall is rendered, more specifically, the ones from RevenueCatUI.PaywallFooterContainerView/RevenueCatUI.presentPaywall(). 

 

Ray.

 


Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 383 replies
  • November 11, 2024

Hi Ray,

At this time, you can’t use Offering metadata with our Paywalls feature. Instead, you would need to create a flexible paywall in code (example') that is reactive to the metadata.


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