-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash after resume #1154
Comments
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out! |
Hey @sonbui00 , Can you please confirm that you have configured the SDK before showing the Paywall in this instance? You might be able to confirm that from debug logs or stack trace of the crash report that you get. Once you get that information, can you please share it here so we can look further into it? |
@michaelAtRC Confirmed. I can open Paywal and make purchase normally. The issue happen when I leave the Paywall open and change to other app in long time and come back, not when I open paywall first time. |
Hi @sonbui00, |
@nyeu my version: purchases_flutter: 8.1.0 |
Hi all, would you mind sharing a code snippet on where and how do you configure the RevenueCat SDK? |
Hi @nyeu here is the code where i have configured the RC. first in main.dart file line number 74: then in revenue_cat_manager_impl.dart line number 25 init method. |
Hi all, we've debugged it and found the issue and the root cause. We are currently working on making a fix for it. Thank you a lot for the debug logs and for your patience! I'll let you know as soon as the fix is out. |
Hi guys, there is any update on this. I am experimenting same issue, I make anything I could, but still can find any fixing. |
Do not remove any of the steps from the template below. If a step is not applicable to your issue, please leave that step empty.
There are a lot of things that can contribute to things not working. Having a very basic understanding of your environment will help us understand your issue faster!
Environment
flutter doctor
purchases-flutter
Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
Describe the bug
I've just use Paywall feature and got many crash report message like this
There is no singleton instance. Make sure you configure Purchases before trying to get the default instance. More info here: https://errors.rev.cat/configuring-sdk
I think the issue happen when the user open paywall and leave the app. And when they comeback, the activity resume and have this issue.
To reproduce the issue you can enable "Don't keep activities" on Developer options. And then ope paywall in the app, leave paywall open and change to other app. When comeback you can see the issue or you can't close the paywall.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: