-1

How would I get the number of online users (and to know if a specific user is online)?

I'm using FireAuth.

robsiemb
  • 6,157
  • 7
  • 32
  • 46

1 Answers1

0

As Doug commented: Firebase Authentication does not have a built in API to track how many users are currently online.

As Mattia commented: the common way to implement this within Firebase is by using the Realtime Database, which has some special handling for it. Read more in the Firebase documentation on managing presence. While I linked to the documentation for Android, the same functionality is available in the Flutter library for the Firebase Realtime Database.

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807