-
Notifications
You must be signed in to change notification settings - Fork 166
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
Realm.GetInstanceAsync never completes on some Android devices #3690
Comments
Does this work if you replace the realm-dotnet/Realm/Realm.UnityUtils/FileHelper.cs Lines 29 to 39 in d44ca65
|
Yes, everything loads without any problems. As I see the async version runs migrations on a background thread, so I'm afraid a bit the the sync version will freeze my UI sometimes. I think it would be nice to understand the original issue, becuase GetInstanceAsync seems to be not very stable (I've already reported an issue in it: #3681) As I see |
I guess if your app explicitly asks for permissions to write to external storage, you would be fine with |
What happened?
I am working on an SDK for our backend services, which is a .NET Standard 2.1 NuGet package but is used in Unity (via UnityNuGet). So I use a version from NuGet in Unity. I can't use Unity version directly, because my SDK targets .NET Standard, not Unity.
On some Android devices that we test our application (for example Xiaomi Redmi Note 13 Pro, but only on the physical device, not in browserstack or in emulator)
GetInstanceAsync
returns a task that never completes.GetInstance
works perfectly.Repro steps
Version
20.1.0
What Atlas Services are you using?
Local Database only
What type of application is this?
Unity
Client OS and version
Android 14
Code snippets
No response
Stacktrace of the exception/crash you're getting
Relevant log output
The text was updated successfully, but these errors were encountered: