I am using RevenueCatUI.presentPaywall to display Paywall on ANDROID, How I can close paywall by auto when user make Pruchases process, the Paywall close just if user click on X icon, I need to close it automatically by RevenueCatUI SDK
Hi, when using the RevenueCatUI.presentPaywall() to show the paywall it should dismiss when the purchase is completed. Can you please share with me your paywall code and the version of our SDK you are using? Additionally can you enable RevenueCat debug logs and send those for when a user makes a purchase? See our docs here.
Hello
thats the code we using:
const result = await RevenueCatUI.presentPaywall({
displayCloseButton: true,
fontFamily: null, // Replace with your custom font family if needed
});
console.log('Paywall result:', result);
if (result === PAYWALL_RESULT.PURCHASED) {
const modal: CustomModalProps = {
headerText: 'Welcome',
bodyText: 'Thank you.',
primaryButtonText: 'OK',
onPrimaryPress() {
dispatch(closeAlert());
},
};
dispatch(setSubscribeStatus({ isActive: true, showPaywall: false }));
}
the modal dismiss just when user click in X icon, not when user finish the pay process,
as a developer I can tell you the code stack on this line
const result = await RevenueCatUI.presentPaywall({
displayCloseButton: true,
fontFamily: null, // Replace with your custom font family if needed
});
until the user click on X icon and the code resume and make the If check.
"react-native-purchases": "8.5.0",
"react-native-purchases-ui": "8.5.0",
Thanks
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.