ronanglo
ronanglo

Reputation: 43

Firebase : How many subscribers to a topic?

Is it possible to know how many Instance ID tokens have been subscribed to a topic with the Firebase API?

Upvotes: 2

Views: 1549

Answers (2)

Richard Ansell
Richard Ansell

Reputation: 926

Best idea is to consider implementing a simple counter/s in Firebase Realtime Database from your application whenever a user subscribes/unsubscribed from a topic you define. You can then query the variable/s however you wish.

Upvotes: 0

Arthur Thompson
Arthur Thompson

Reputation: 9225

Currently no, you have to keep track of what topics an IID is subscribed to yourself.

Upvotes: 2

Related Questions