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
on android: Error: Realm at path 'path/to/realm' already opened with a different encryption key. (when trying to write)
on ios: Unable to open realm at path '': Realm file decryption failed Path:. (when building)
iOS:
Unable to open a realm at path '/Users/iguana/Library/Developer/CoreSimulator/Devices/116618B3-440A-4852-A412-B81CC062E752/data/Containers/Data/Application/504E3B95-597C-480B-A27A-F97136CC6E94/Documents/standardObject.realm': Realm file decryption failed Path:.
I handled the issue, though I would still like to know why the solution works.
Instead of adding the encryptionKey directly in standardObjectSchema, when I mount my first component where I import newStandardObject in componentDidMount, I add: newStandardObject.encryptionKey = base64js.toByteArray(string)
nope. im wrong. that does not work. still getting the same error
Goals
read and write to encrypted realm
Expected Results
can encrypt, read and write
Actual Results
on android: Error: Realm at path 'path/to/realm' already opened with a different encryption key. (when trying to write)
on ios: Unable to open realm at path '': Realm file decryption failed Path:. (when building)
iOS:
StandardObject.js:52:47 loadModuleImplementation require.js:331:6 index.js:1 loadModuleImplementation require.js:331:6 index.js:8 loadModuleImplementation require.js:331:6 Login.js:21 loadModuleImplementation require.js:331:6 RouterLogin.js:6 loadModuleImplementation require.js:331:6 App.js:4 loadModuleImplementation require.js:331:6 index.js:6 loadModuleImplementation require.js:331:6 guardedLoadModule require.js:197:45 global code :0 Unable to open a realm at path '/Users/iguana/Library/Developer/CoreSimulator/Devices/116618B3-440A-4852-A412-B81CC062E752/data/Containers/Data/Application/504E3B95-597C-480B-A27A-F97136CC6E94/Documents/standardObject.realm': Realm file decryption failed Path:.
Andriod:

Steps to Reproduce
on ios, fails on build
on android fails on write to realm
both are solved when I remove the encryptionKey
Code Sample
Version of Realm and Tooling
"realm": "^2.26.0"
"react": "16.8.3"
"react-native": "0.59.3"
iOS: 12
Android: 9
Flipper
The text was updated successfully, but these errors were encountered: