Subscribers without subscriberId
I am currently storing device tokens in my database. When users authenticate, I link their user_id with the corresponding device token to identify which device belongs to which user. I want to do the same in Novu too. I would like to create a subscriber in Novu and later update it with the user_id as the subscriberId. In this way I would be able to send general push notifications to users without user_id and later send personolised ones when they will have user_id. However, it seems that the subscriberId cannot be updated. How should I handle this situation? Are there any best practices for such a case?
I thought about putting device token as a subscriberId in the beginning (when I don't have the user_id yet) and later, when I will have user_id, create a completely new subscriber with user_id as a subscriberId and delete the initial subsriber with device token as a subscriberId, but it's kind of weird.
Thanks in advance.
I thought about putting device token as a subscriberId in the beginning (when I don't have the user_id yet) and later, when I will have user_id, create a completely new subscriber with user_id as a subscriberId and delete the initial subsriber with device token as a subscriberId, but it's kind of weird.
Thanks in advance.