Reputation: 333
Is there a way to add an expiry time for the Firebase topic subscription.
I would like the subscription to a topic to be cleared at the end of every week or month.
Apart from manually calling unsubscribe, is there any method for me to specify an expiry time for the topic subscription while making the subscription?
Thanks in advance.
Upvotes: 0
Views: 1086
Reputation: 322
You can manage it on the serverside, and unsubscribe registration IDs of the phones, where the registration expired.
https://firebase.google.com/docs/cloud-messaging/manage-topics
Upvotes: 0
Reputation: 600006
Firebase Cloud Messaging topics don't auto-expire. Just like you explicitly make a call to subscribe a user/token to a topic, you will have to make an explicit call to unsubscribe them from that topic.
Upvotes: 4