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?
