Search code examples
androidfirebasefirebase-realtime-databaselistener

Calling onDataChange() by setting value to itself? Firebase


I was basically wondering if I set the value of a variable in a Firebase database to itself aka turn a "Hello World" into a "Hello World" in some android studio code, would a ValueEventListener consider this a change and run the onDataChange() function?

Thanks for your help in advance.


Solution

  • It will not trigger the listener. This should be easy for you to test for yourself.