For the notifications to be used, the backend needs to be aware of the expo token of each user. This means that the application should send the token to the backend when it creates it. I think that the app should also ask the backend for the current token every time that the app is opened. If the token is null, then the app could create a new token and send it to the backend to re-activate the notifications.
Why it’s relevant
This is relevant because it allows us to use the notification token of each user to send them notifications on the events that we consider relevant.
Description
For the notifications to be used, the backend needs to be aware of the expo token of each user. This means that the application should send the token to the backend when it creates it. I think that the app should also ask the backend for the current token every time that the app is opened. If the token is
null
, then the app could create a new token and send it to the backend to re-activate the notifications.Why it’s relevant
This is relevant because it allows us to use the notification token of each user to send them notifications on the events that we consider relevant.