What do you want to achieve?
?
E.g. full stack trace with exception
realmCollectionOrder listener not working or Live notification not happening
public void attachRealmAsync(String id) {
db.where(MyEntity.class)
.equalTo(DataContract.MyEntry.COLUMN_Id, id)
.findAllAsync().addChangeListener(, new OrderedRealmCollectionChangeListener<RealmResults<MyEntity>>() {
@Override
public void onChange(RealmResults<MyEntity> myEntity, OrderedCollectionChangeSet changeSet) {
Timber.d("Entity Synced"+myEntity.size());
realmSyncChat_db.refresh();
}
});
}
Realm version(s): 5.7.0
Realm sync feature enabled: yes
Android Studio version: 3.1.4
I assume it's because GC ate your RealmResults.
it means whenever i used GarbageCollection then i need to reattach RealmQuery Listener
and how i can prevent from it.
I assume the above solution solved your issue. If not, feel free to re-open the issue.
Most helpful comment
See https://realm.io/docs/java/latest/#notifications