Open jaceknijaki opened 3 weeks ago
Thanks for such detailed report @jaceknijaki !
Regarding step #4
- The PaywallCloseReason.none
indicates that the paywall hasn't been closed. I understand this might be confusing tho and I see that we don't have comments in our Flutter code that explain that like we have on native so will definitely add these in.
Regarding step #7
- PaywallPresentationHandler.onPresent()
is related to the paywall presentation itself and it should be invoked only when the paywall is presented, while the SuperwallDelegate.didPresentPaywall()
is related to the paywall view itself so it can trigger multiple times (i.e. when it shows again)
The step #9
seems like a bug in our native SDK. I'll investigate it further and let you know as soon as the fix is out!
Hey @jaceknijaki , the issues you've been seeing in step #9 should be resolved now in the version 1.2.2 of the SDK!
Disclaimer: This was tested on Android 10, SDK v1.2.1
When paywall is shown and app is moved to the background there are inconsistencies between notifications received by
SuperwallDelegate
,PaywallPresentationHandler
and real Activity stateAttaching logs from the official example app, with my comments:
PaywallPresentationHandler.onPresent()
was not called butSuperwallDelegate.didPresentPaywall()
wasPaywallPresentationHandler.onDismiss()
was not invoke, it will be never invoked again, even if using "x" button on the paywall (when app will be back from BG) Problem 5:PaywallCloseReason.none
is always sent in thepaywallInfo
no matter what was the real reason