I am trying to Add a record in Realm using insertOrUpdate when my App is closed(When my app receives a push notification through firebase) but I am getting the error.
Callback cannot be delivered on current thread. Realm cannot be automatically updated on a thread without a looper.
You're trying to add a change listener or call an async transaction with an onsuccess/onerror callback on a thread that does not have a looper
Yeah got the solution.
can you share your solution pls ?
@Redhac you have to not try to add a change listener or call an async transaction with onSuccess/onError callback on a thread that does not have a looper
@Redhac The solution is don't use async transaction because as there is no looper attached.
Most helpful comment
@Redhac The solution is don't use async transaction because as there is no looper attached.