Android – manage online status in cloud firestore
•
Android
In the firebase real-time database, we can easily manage the user status by keeping the reference to the node and updating it, as shown below:
DatabaseRef presenceRef = FirebaseDatabase.getInstance().getReference("disconnectmessage");
presenceRef.onDisconnect().setValue("I disconnected!");
If I want to do the same thing in cloud firestore, is there a way to achieve it?
resolvent:
You can easily use cloud firestore and realtime database in the same project. For status, we recommend that you still use real-time database to process it
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码