Skip to content

Commit

Permalink
chore(notifications): fix relevant error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
peterbitfly committed Sep 10, 2024
1 parent 13780b3 commit 98f7a63
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backend/pkg/notification/firebase.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ func isRelevantError(response *messaging.SendResponse) bool {
if !response.Success && response.Error != nil {
// Ignore https://stackoverflow.com/questions/58308835/using-firebase-for-notifications-getting-app-instance-has-been-unregistered
// Errors since they indicate that the user token is expired
if !strings.Contains(response.Error.Error(), "registration-token-not-registered") {
if !strings.Contains(response.Error.Error(), "registration-token-not-registered") &&
!strings.Contains(response.Error.Error(), "Requested entity was not found.") &&
!strings.Contains(response.Error.Error(), "Request contains an invalid argument.") {
return true
}
}
Expand Down

0 comments on commit 98f7a63

Please sign in to comment.