-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
enhancementNew feature or requestNew feature or request
Description
FCM Token Handling During Signup:
We should enhance our signup process to remove the storing FCM token because the store now being after signup/login.
Delete invalid FCM token when try to send notification.
In the following code, we should handle the FirebaseMessagingError with the message 'Requested entity was not found.' This error may indicate that the FCM token has expired or been deleted, so it's advisable to handle this situation by deleting the invalid token.
admin.messaging().send(message)
.then((response) => {
console.log(response + ' messages were sent successfully');
})
.catch(err => {
console.log("failed to send firebase message")
});
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request