Open nhachicha opened 2 years ago
I ran into this issue too. The workaround that seems to work for me is to use subscriptions.addOrUpdate(...)
instead of subscriptions.add(...)
.
subscriptions.addOrUpdate(...)
is this the official method?
On furthur reading/testing, it seems that subscriptions.addOrUpdate(...)
is not a usable workaround. It doesn't work when the device is offline and in blocks the initialization of the Realm.getInstance()
So issue still persists.
How frequently does the bug occur?
All the time
Description
initialSubscriptions
block runs on the subsequent starts of the App which causes the subscriptions to be added which throwsStacktrace & log output
Can you reproduce the bug?
Yes, always
Reproduction Steps
No response
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)
Android API29 x86_64
Build environment
No response