0
import firebase_admin
from firebase_admin import credentials, messaging
firebase_cred = credentials.Certificate("notification-microservice-dev-firebase.json")
firebase_app = firebase_admin.initialize_app(firebase_cred)

def create_topic(tokens, topic_name):
    topic = messaging.subscribe_to_topic(tokens, topic_name)
    return topic
topic = create_topic(["asdasddas","asdasdasdsaasd","asdasdasd"],"nuevo_topic")

This code is responsible for adding tokens to a topic , but how can I get all the tokens added to a topic , I've been looking in the documentation and I can't find anything about it

Oxonomy
  • 21
  • 5
  • Have you tried to check this [[stackoverflow thread](https://stackoverflow.com/questions/54533735/how-to-get-client-fcm-tokens-from-a-fcm-topic) if this address your concern? – Sarah Remo Dec 08 '22 at 01:00

0 Answers0