Hello,
I’m building an app that listens to changes from my Realm App (on cloud), by following the procedure at this link: https://docs.mongodb.com/realm/sdk/dotnet/examples/react-to-changes
I setup some code on my PC 1 like this:
var token = realm.All<Person>() .SubscribeForNotifications((sender, changes, error) => { Console.WriteLine("Something changed!"); } while (true) { AsyncContext.Run(async () => { realm.Refresh(); }); await Task.Delay(2000); }
On my PC 2, my code simply changed a property of an object:
realm.Write(() => { person.FullName = person.FirstName + " " + person.LastName; });
I expected that, after the change from PC 2 was committed to Realm Server, I should be able to detect the data change on PC 1.
But it seems not work. Did I miss any thing or am I using SubscribeForNotifications the wrong way?
BTW, do we have such a thing like RegexNotificationHandler in Mongodb Realm?
Thank you very much.