-
Notifications
You must be signed in to change notification settings - Fork 133
10001 Cannot open store after exiting app by going back #442
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
Comments
@BLB-EN438 @animedev1 I can't reproduce this with our example (e.g. launch, press back, then launch the app from the launcher shortcut again). Is ObjectBox in your project maybe set up differently from the example? |
Without additional information, we are unfortunately not sure how to resolve this issue. Therefore this issue has been automatically closed. Feel free to comment with additional details and we can re-open this issue. |
I have had the same error when opening a deep link on Android. Looks like it's related to flutter/flutter#91649 The fix is to change the Android launch mode from <activity
android:launchMode="singleInstance"
// ...
> and to ensure that only ever one instance of an ObjectBox Store is open at the same time using |
@techouse Thanks for the details! So this is another workaround instead of using an is open check and doing attach vs. open, see #436. Then #436 is not an edge case after all and a Store being opened multiple times can actually happen more frequently than I thought. We maybe should add guidance in the docs about this then or maybe adapt our API if possible. |
When exiting a Flutter app using the back navigation button, then re-launching it the following exception appears:
10001 Cannot open store: another store is still open using the same path
Basic info (please complete the following information):
Moved out of similar, but unrelated (Flutter hot restart) #387
The text was updated successfully, but these errors were encountered: