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.
Page 1 / 1
Hi
dPurchases] - DEBUG: No cached entitlements, fetching
Purchases] - DEBUG: GET /v1/subscribers/<APP_USER_ID> 200
Purchases] - DEBUG: Purchaser info updated, sending to delegate
Please ensure the debug logs include the entire app life-cycle, including the messages printed during initialization of the SDK. The more information you include here, the better we'll be able to help.
For Flutter on iOS, the best way to easily get these logs is to run the app directly from Xcode. Here’s how to do that. Thanks!
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.