Reputation: 3051
I am currently using FirebaseAuth.Net and FirebaseDatabase.Net packages in VS2019 with my Xamarin.Form.Mobile. Normally, i have to manually refresh in order to receive the lastest updated Data. Is there anyway or method in FirebaseAuth.Net and FirebaseDatabase.Net that i can broadcast real-time data update to all users? Example: 1 user update or send a Message to the server, and server update it to all users in real-time.
Upvotes: 0
Views: 95
Reputation: 598817
Normally, i have to manually refresh in order to receive the lastest updated Data.
That's actually not normal for Firebase Realtime Database, but depends on how you read the data. If you use OnceAsync()
you're reading the data once, but if you Subscribe
you will get called every time the data is updated too.
I recommend checking this example in the documentation on Github about realtime streaming.
Upvotes: 1