Skip to main content
Question

Restore Purchase button on revenue cat paywall doesn not close the paywall - Android SDK

  • February 20, 2026
  • 3 replies
  • 32 views

Forum|alt.badge.img

When i launch paywall as in example - the paywall does not close when the user clicks restore purchase button inside the paywall.

 

@OptIn(ExperimentalPreviewRevenueCatUIPurchasesAPI::class)
class MainActivity : AppCompatActivity(), PaywallResultHandler {
private lateinit var paywallActivityLauncher: PaywallActivityLauncher
private lateinit var root: View

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)

paywallActivityLauncher = PaywallActivityLauncher(this, this)
}

private fun launchPaywallActivity() {
paywallActivityLauncher.launch(offering = offering)
}

override fun onActivityResult(result: PaywallResult) {}
}
I also tried to use launchIfNeeded() function:
paywallActivityLauncher.launchIfNeeded(offering = offering) { customerInfo ->
customerInfo.entitlements.active.isEmpty()
}


This does not close the paywall either. The paywall doesn’t close regardless of the restore result.
Is there an option for android sdk Activity implementation to change this behaviour?
 

3 replies

Forum|alt.badge.img
  • Member
  • February 21, 2026

Hi ​@duje-8fc3b5!

 

I believe you need to programmatically handle the restore paywall result (given success/error) inside of the onActivityResult override to close the activity that triggered paywall launch.

 

Cam


Forum|alt.badge.img
  • Author
  • New Member
  • February 21, 2026

Thank you for you answer cam.

I think you misunderstood my question. The problem that I have is that my paywall does’t provide any feedback to the user when one clicks restore purchase. The paywall doesn’t close and there is no any dialog that notifies the user if the restore succeeded or failed. Also I don’t have control over the paywall activity so I can’t close it manually either.

I am not concerned about handling PaywallActivityResult.


Forum|alt.badge.img
  • Member
  • February 21, 2026

My bad! Digging a bit, you might be running into the same issue: