Skip to content Skip to sidebar Skip to footer

Realmchangelistener Does Not Execute When Added Shortly After Asynchronous Write

Long story short: I do not know why my RealmChangeListener does not trigger as intended under certain circumstances and am looking for advice on why a RealmChangeListener could not

Solution 1:

You need to have a (strong) field reference to the RealmResults<T> so that you keep it from getting GC'd.

If a RealmResults gets GC'd, then Realm can no longer auto-update it.

Post a Comment for "Realmchangelistener Does Not Execute When Added Shortly After Asynchronous Write"