-
Notifications
You must be signed in to change notification settings - Fork 169
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
App crashes on reopen from homescreen due to PurhcasesHybridCommon error #980
Comments
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out! |
Thanks for the report! That error happens if you try to use In your initialization code it looks like you have many calls inside of a I recommend separating each of those initializations so you can isolate what's throwing an exception, and so you don't inadvertently leave |
I added the try catch as a suggestion from someone on the flutter form, however, before it I didn't use the try catch and didn't get any errors on the initialization of the app. I'm able to access all the subscription information up until i close and reopen the app, I noticed i was using a static variable to try and not call configure multiple times, but even after changing it to shared preferences i still get the same error. I call the init method multiple times to ensure it is initialised before using.
|
This is the error log i get now:
|
It looks like the stacktrace doesn't have symbols, so it's hard to know what's going on, although it looks pretty much the same as the original. As a suggestion that I think might help you figure this out. There's a |
When I open the app everything works fine but when i close it and reopen it from the home screen it crashes on TestFlight.
Here's the crash log of the thread its crashing on:
this is my main.dart code:
The text was updated successfully, but these errors were encountered: