React on Changes || Data Sync to custom API #3492
Unanswered
dharamhbtik
asked this question in
Q&A
Replies: 1 comment 5 replies
-
Hi @dharamhbtik, I suppose you tried subscribing to the generic |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are using Realm's latest version for our Xamarin Forms targetting offline first approach. So we have almost 20 model class implementing IRealmObject out of which around 9 models needs to be synced back to API if there is any update.
Currently, we have created a background service that runs every 60 seconds and checks if there are any changes in those 9 models based on the flag, we select those data, convert it to JSON, and then post it to API. After a successful API post, we update the flag.
We also tried to subscribe to the realm event described at https://www.mongodb.com/docs/realm/sdk/dotnet/react-to-changes/ but there is no way to find which model changed and it keeps firing.
Looking for some solution through which I can identify the changes in those 9 models only in real-time and sync the delta to API.
Beta Was this translation helpful? Give feedback.
All reactions