Skip to main content

Hi,

I’m currently using PaywallActivityLauncher to display the paywall in my Android application. I need to manage both the purchase state and the restoration of previous purchases. While I’ve come across methods to handle the purchase state, I haven’t found any options for managing the restoration of state.

Could you provide guidance on how to handle restoring the state of purchases with PaywallActivityLauncher

when user click the restore button.override fun onActivityResult(result: PaywallResult) {    when(result){        PaywallResult.Cancelled ->            Log.d("revenuecat ","Cancelled")        is PaywallResult.Error ->            Log.d("revenuecat ","Error")        is PaywallResult.Purchased ->            Log.d("revenuecat ","Purchased")    }}

 

Thank you!

Hi, I mentioned this in an email to you, but can post here as well: 

We don't have a way to add custom listeners to the Paywalls components just yet, but we do have this customerInfo listener that will fire whenever the customerInfo object updates (e.g., when restorePurchases is clicked and it modifies the object if there's a missing purchase). Would that work for your use case?