I am trying to understand the logic behind Subscriptions and query fields in FlexibleSync, as I understand, these are needed to “listen” to changes, so that any change done in that collection will be synced, my predicament however is what kind of subscriptions must I have if I want to listen to all changes?!
I tried to configure the app with the following, and as I wrote in adjacent thread, although it worked once, it never worked again and now I am doubting maybe it was because of how I configured the subscriptions…
_realm.Subscriptions.Update(() =>
{
_realm.Subscriptions.Add(_realm.All<EntryEntity>());
_realm.Subscriptions.Add(_realm.All<LanguageEntity>());
_realm.Subscriptions.Add(_realm.All<PhraseEntity>());
_realm.Subscriptions.Add(_realm.All<SourceEntity>());
_realm.Subscriptions.Add(_realm.All<TranslationEntity>());
_realm.Subscriptions.Add(_realm.All<UserEntity>());
_realm.Subscriptions.Add(_realm.All<WordEntity>());
});
Is this way of configuring, i.e. adding everything to subscriptions is ok? If so, why it’s not a normal behavior, i.e. why would you even need to configure subscriptions if realm can handle all object changes for all objects? If it’s not ok, then how else should I have configured them to listen to changes to any of those entities, regardless of who made the changes and on which field?
Thank you.