Hello,
The question is about Flutter SDK on iOS.
I noticed the following behaviour for RevenueCatUI.presentPaywallIfNeeded and RevenueCatUI.presentPaywall:
- If the app was in the background, and I call “await RevenueCatUI.presentPaywall(...)” right after the app is resumed, the call never returns (awaiting forever).
- Everything works if I add 500-1000 ms delay after the app is resumed.
Could someone explain why is this happening? How can I wait for the SDK to be ready to show the paywall without adding an explicite delay?
I tried:
- await Purchases.getCustomerInfo();
- await Purchases.getProducts();
- await Purchases.getOfferings();
Nothing from this list helps, only the actual delay does.
Thank you.
Question
RevenueCatUI.presentPaywallIfNeeded after app resume
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.