Skip to main content

I'm using React Native to build an Android APK.

Since I'm using addCustomerInfoUpdatingListener during app initialization, and within the app, I open WebBrowser to access Web Paywall Links (low code) for payment, will the CustomerInfo be updated after the payment is successful and the WebBrowser is closed?

 

Because if I were to monitor CustomerInfo information

 

Hi ​@bruce_wayne,

Seems that you’re message was cut-off in the middle? 

Regarding your first question, the callback you add to addCustomerInfoUpdatingListener will NOT be called if you’re using Web Paywall links from the web, since there is currently no way for the React Native SDK to notice you’re coming back from a purchase in a browser (this flow is not part of the RN SDK). Could you provide more details on your use case to make sure it would be supported?

A thought that might help to support this, is to invalidate the CustomerInfo cache and then fetch the new CustomerInfo using getCustomerInfo when you detect that the app comes back from the web purchase flow but please let us know what your use case looks like to make sure it would work as expected. You also would need to make sure Apple/Google allow your business model to use web purchases from your mobile app. Otherwise, your app may get rejected by Apple/Google.


I saw the newly launched Web Paywall button feature on Revenuecat. Does it support Android apps as well


Hi ​@bruce_wayne at this time our web purchase button is not available for our Android SDK, see our docs here for the available SDKs and versions. If you are using a hybrid like React Native then this is currently possible and you can do so by creating a button component and choosing 'Navigate to' -> 'Web Purchase'.


Reply