For sending the IOS notification, we have to send a device token with request. Then we save the device token in database users
table.
When the user logs in, we store the device token in a column as per the device token notification goes to user.
However, when user logs out, device token is removed from the users
table
and those notifications go a-miss from that user.
How can we handle this scenario that whenever someone logs in, the device can then send all those notifications?