Hi everyone! I’ve been encountering a strange issue with the AsyncOpen method. I’m running ROS on a DO droplet, and I’m using Realm Swift to synchronise data from ROS. I’m opening the current user’s default realm for reading/writing profile data & opening another user’s realm in read-only mode to allow the current user to view the user’s profile data.
When I load the app initially, the data from the read-only realm is downloaded. However, when the other user updates his profile info from another device, or when I manually update the other user’s profile using Realm Studio, the data on the current user’s device from the read-only realm never gets updated unless I relaunch the app.
I’ve tried the following approaches, and I encounter problems with each:
- I call the AsyncOpen method again - the callback never gets called
- I manually call the read-only realm’s refresh method - it always returns false & the data isn’t updated
- I set-up an observer on the realm during the initial AsyncOpen method call - the observer’s notification block never gets called
- I set-up an observer on the profile object itself (which I understand isn’t advisable since it’s contained within a read-only realm) - same results as number 3, notification block never gets called
What could I be missing? Any advice would be most welcome.