You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@gboyegadada thanks for the report, I've added it to our backlog.
It's unfortunately not as trivial as updating the docs when it come to RN - initial thoughts are that a config parameter needs to be added for Realm, and use it to ensure the NSFileProtection level behind the scenes (as described in your linked documentation).
@steffenagger A little update: I wrote a small module to help me subscribe to the UIApplicationProtectedDataWillBecomeUnavailable and UIApplicationProtectedDataDidBecomeAvailable notifications in iOS (turns out that it's relatively easy to send event notifications from Objective C to react native with some help from the RN docs and a tutorial (I'm completely new to Objective C !)
So right now, I basically suspend my db related tasks when the device is locked and resume when unlocked.
Goals
No crashes while using realm js on physical iOS devices.
Expected Results
Realm queries should not crash when physical iOS device is locked with PIN.
Actual Results
App crashes when in background and phone is locked.
Steps to Reproduce
realm/realm-cocoa
repo: find_first(realm::StringData, unsigned long, unsigned long) const + 200 realm-swift#5912 (comment)Code Sample
Version of Realm and Tooling
^6.0.4
RN: v0.63.2
The text was updated successfully, but these errors were encountered: