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