Skip to content

Commit

Permalink
Add the offending code to the list of known failures.
Browse files Browse the repository at this point in the history
The documentation is not clear about the value of error code string.
We were assuming "messaging/registration-token-not-registered" but
we are seeing "registration-token-not-registered" in the logs.
So this is added to the list.
  • Loading branch information
prasanthu committed Oct 23, 2019
1 parent 96031bc commit 8f72520
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ class FirebaseAppNotifier: AppNotifier {
private val listOfFailureCodes = listOf(
"messaging/invalid-recipient",
"messaging/invalid-registration-token",
"messaging/registration-token-not-registered"
"messaging/registration-token-not-registered",
"registration-token-not-registered"
)

override fun notify(notificationType: NotificationType, customerId: String, data: Map<String, Any>) =
Expand Down

0 comments on commit 8f72520

Please sign in to comment.