[Using Unity 5.5.0f3 and Firebase 1.1.2. testing on Nexus 5 Android 5.0 emulator(Genymotion) and a real LG G3 Android 6.0]
In my Unity program, I have a function that, when a user logs in using the firebase Auth, he then starts listening to changes on a particular database reference. When data is added to the reference, the user is supposed to be shown that new data in the Unity program. The database reference is "dbref.Child("whateverYouWant").OrderByKey().LimitToLast(25)". The database in question has no restrictions meaning that anyone can read or write to it.
If the user is already signed in when the app starts(due to a saved auth token), the data of the reference is displayed without any problem and if the user adds data, he immediately see the changes.
The problem is that if the user is not signed in when the app starts but then signs in, the listeners do not work. No data of the reference is loaded and if the user adds data, he cannot see the new data he entered. The handler functions are simply not called at all. The data can be seen from the firebase console though meaning that the transaction did take place but the listeners did not react. No error are displayed in the logs. I added what is displayed right after adding the "add data handlers".
Can anyone replicate that problem?
I/Unity ( 6829): System.Threading.Tasks.<ContinueWith>c__AnonStorey0:<>m__0(Task)
I/Unity ( 6829): System.Threading.Tasks.<ContinueWith>c__AnonStorey2:<>m__0(Task)
I/Unity ( 6829): System.Threading.Tasks.<ContinueWith>c__AnonStorey1:<>m__0()
I/Unity ( 6829): System.Threading.Tasks.Task:<immediateExecutor>m__1(Action)
I/Unity ( 6829): System.Threading.Tasks.<ContinueWith>c__AnonStorey0`1:<>m__1(Task)
I/Unity ( 6829): System.Threading.Tasks.Task`1:RunContinuations()
I/Unity ( 6829): System.Threading.Tasks.Task`1:TrySetResult(DataSnapshot)
I/Unity ( 6829): System.Threading.Tasks.TaskCompletionSource`1:TrySetResult(DataSnapshot)
I/Unity ( 6829): System.Threading.Tasks.TaskCompletionSource`1:SetResult(DataSnapshot)
I/Unity ( 6829): Firebase.Database.<GetValueAs