Prince Champappilly
Prince Champappilly

Reputation: 333

Firebase topic expiry

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

Answers (2)

Faz
Faz

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

Frank van Puffelen
Frank van Puffelen

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

Related Questions