Hello everyone,
I am currently working on paywall and am having some difficulty displaying the paywall correctly.
Currently, I display the paywall as follows:
ContentView()
.presentPaywallIfNeeded(
requiredEntitlementIdentifier: Constants.ENTITLEMENT_ID,
purchaseCompleted: { customerInfo in
[...]
},
restoreCompleted: { customerInfo in
[...]
}
)However, it is displayed as a sheet dialog and can be easily closed. A paywall that can be easily closed is not a wall—it's just a door that can be kicked in :)
Now I can use the alternative: PaywallView. However, I now have to implement the logic myself to determine whether PaywallView should be displayed or not. Right?
Is there an SDK function that allows me to decide whether to display it or not, as with the sheet dialog? The documentation has no info about it.
I want the user to be unable to close the paywall. He has to pay or close the app, but the paywall must be impossible to overcome. And I need the verification to be encapsulated by the SDK. Is it possible?
best regards
