Open tjuela opened 2 years ago
Also happens on 10.25.2
Hi I think this may be happening because an external sync change occurs and the client somehow tries to react when it's backgrounding. Are you doing anything prior to the app being backgrounded? If you can reproduce and share, that'd be super helpful.
Hi @tjuela , Can you provide any information requested by Eric?
Hi I think this may be happening because an external sync change occurs and the client somehow tries to react when it's backgrounding. Are you doing anything prior to the app being backgrounded? If you can reproduce and share, that'd be super helpful.
You might need to disable file protection for a locked device. See https://www.mongodb.com/docs/realm/sdk/swift/realm-files/configure-and-open-a-realm/#use-realm-when-the-device-is-locked
@tjuela did the above suggestion help at all?
No, fileprotection level was already set to .completeUntilFirstUserAuthentication
How frequently does the bug occur?
All the time
Description
I expect app not to crash in background.
Stacktrace & log output
Can you reproduce the bug?
Not yet
Reproduction Steps
It's difficult to reproduce the bug, I just know it happens at some point when the app is moved to the background.
Version
10.25.1
What SDK flavour are you using?
MongoDB Realm (i.e. Sync, auth, functions)
Are you using encryption?
No, not using encryption
Platform OS and version(s)
iOS 15.4.1
Build environment
Xcode version: 13.3.1 (13E500a) Dependency manager and version: SPM