I’m creating an events app and close to finishing.
One of the final parts is to create Ionic push notifications, for example when an event is created I want to send a notification to all invited users.
To do this I am thinking I would need to store the device tokens in my database of every single user, and then when invites are sent out to look up their token in order to send a push notification?
The issue I see with this, is what if user x changes devices, do I have to save their new device token to my database and then now send a push notification to both the tokens now listed for the user x?
Sorry if this is nooby XD