Ideally, you can simply use the path to your federated area file when you open the kingdom. Unfortunately, this will not work until read-only support is added. I created a problem to track this: https://github.com/realm/realm-js/issues/392
Until read-only capabilities are supported, you can copy the associated area file to your document directory when you launch the application in AppDelegate, and then use this path to access the united kingdom. Relative paths are supported, so if you copy the file to <Documents>/bundled.realm , you can open this file simply by passing the file name, that is, new Realm({path: 'bundled.realm'})
source share