Narek
NNovu
•Created by Narek on 2/18/2025 in #💬│support
How to delete one of several deviceTokens of the same provider?
Let's imagine a user (same subscriberId) has 2 iPhones and 3 Androids and all are subscribed for push notifications. For some reason I need to unsubscribe one of these devices and I know the exact deviceToken. After some efforts I can have also the providerId of that deviceToken. How can I remove this deviceToken and keep the others?
3 replies
NNovu
•Created by Narek on 2/17/2025 in #💬│support
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.
6 replies
NNovu
•Created by Narek on 1/29/2025 in #💬│support
Failed to generate token: secretOrPrivateKey must be an asymmetric key when using ES256

6 replies