I would like to access my Realm from an iOS extension however the realm path is unavailable when using the Realm Mobile Platform. I've received advice from realm to hold a cloned copy and keep it in sync. How can that be achieved? ...and is it considered a "clean" solution? (there could be multiple realms)
相关问题
- Realm migration from a required variable to nullab
- Covert realm list to realm result
- Realm with React Native, how to query through list
- get output frames failed, state 8196
- Error installing Realm via npm: npm ERR! Failed at
相关文章
- RealmSwift: No such module 'RealmSwift'
- Open Realm-JS Defined in Another .JS File
- RealmBaseAdapter with multiple RealmObjects
- Fetch a single column from Realm Database (Android
- Obtaining contacts from content provider without d
- Realm with Content Provider
- Updating UITableView with multiple sections from R
- Synchronized Realm - Airplane Mode
You should just open the synced Realm from your extension by creating a Realm configuration with a proper sync configuration (specifying user and remote Realm URL), like usual.
This is the only currently supported way to use the same synced Realm with both an app and its associated extension(s). The underlying reason is because Realm's synchronization subsystem doesn't support accessing the same synced Realm file concurrently from multiple processes.