Sending Mobile Push Notifications to Different Mobile Devices Owned by the Same Person

Hi, I have a usecase of an event triggering a workflow which needs to send push notifications to a user in the payload and each of his/her mobile devices. For example, when a reminder is triggered - a push notificaiton should go to his/her iPhone and iPad. What is the recommended way of doing this? Below are the solutions I've thought of so far: - Each user is a unique Subscriber and their mobile tokens are included in the data column as a list? - Each mobile device is a unique subscriber and the User/Subscriber map should be kept in an external DB? Are there any easier methods of doing this? Thank you.
5 Replies
ginger_lemon
ginger_lemon7mo ago
I should mention, I am self-hosted with the latest version of Novu deployed in EC2 via docker.
matthias
matthias7mo ago
I'm not a Novu expert but on my side if a subscriber has many devices then he will have many tokens in the credentials deviceTokens section. When the notification will be sent it will be sent to all the devices. I'm also using self-hosted solution.
No description
Pawan Jain
Pawan Jain7mo ago
Thanks @matthias Yes you are correct, deviceTokens is of array type and multiple tokens can be stored for multiple devices
ginger_lemon
ginger_lemon7mo ago
Oh okay, very nice. Thanks! @matthias
Linear
Linear7mo ago
Issue DVRL-121 created.
DVRL-121 - docs: how to send push notiifcation to multiple device owned by same user
solution summary:- novu supports storing multiple tokens as deviceTokens is of array type
Status
Triage
DevRel