realm / realm-java

Realm is a mobile database: a replacement for SQLite & ORMs
http://realm.io
Apache License 2.0
11.46k stars 1.75k forks source link

Notifications not working properly on Flexible sync #7659

Open clementetb opened 2 years ago

clementetb commented 2 years ago

How frequently does the bug occur?

All the time

Description

RealmResults change listener does not trigger on remote changes for objects filtered by Flexible sync.

Stacktrace & log output

No response

Can you reproduce the bug?

Yes, always

Reproduction Steps

Using the following project:

https://github.com/realm/flexible-sync-team-floggie

The game list does not react to games created by the admin:

Version

10.10.1

What SDK flavour are you using?

MongoDB Realm (i.e. Sync, auth, functions)

Are you using encryption?

No, not using encryption

Platform OS and version(s)

Android12

Build environment

Android Studio version: ... Android Build Tools version: ... Gradle version: ...

clementetb commented 2 years ago

It was an app issue

cmelchior commented 2 years ago

I run into some issues here as well, I suspect we do have some things that can be improved

clementetb commented 2 years ago

Closed because I thought it was an app issue, reopening because I was able to reproduce it again.

molind commented 2 years ago

Any news on this bug? I have same issue on Poco F3 Android 12, but can't reproduce on Android emulator.