#How to remove outdated firebase tokens?

1 messages · Page 1 of 1 (latest)

glad solar
safe haven
#

@glad solar you should be able to update it in the same way you added it to Novu 🙂

glad solar
#

Hi @safe haven, thanks for reply 🙂
does Novu return error if token already been staled?

safe haven
#

you mean when you trigger event?

safe haven
#

No we just return that we have recived your trigger

glad solar
#

I guess I need to store tokens in my database and in Novu, and run cron job to delete outdated tokens

#

:/

#

I think it would be nice to have expiration time for tokens 😄

safe haven
#

@glad solar we are working on webhooks callbacks from providers to make it easy to debug not sent notifications 🙂

#

maybe that could help your usecase in the future?

glad solar
#

Cool, but I think it would be nice to have expiration time for each FCM token, so Novu server would not be full of staled tokens and clients can store tokens into Novu without caring about their conflicts.

safe haven
#

yeah I agree, please create an issue here:

#

!issue

serene perchBOT
glad solar
#

done, 🙂

safe haven
#

Thanks 🙂

glad solar
#

I would try to find some free time to contribute. Your product is amazing ⭐