Hello,
I’m trying to use custom display logic in my android’s paywall dialog.
I use “setShouldDisplayBlock” according to the documentation, however it seems it’s being ignored.
Let’s use an exaggerated example:
val paywallDialogOptions = PaywallDialogOptions.Builder() .setShouldDisplayBlock { false } .setRequiredEntitlementIdentifier(PurchaseManager.premiumEntitlementId) .build()PaywallDialog(paywallDialogOptions = paywallDialogOptions)
It should never be displayed according to the documentation, yet it’s being shown the moment the screen is open.
Did I get something wrong?
I created a simple project that it can be tested on - https://github.com/kmalyshev/purchases-paywall-problem. You’d need to add a revenuecat’s api key and the entitlement identifier