diff options
author | Vitaly Takmazov | 2018-10-15 17:15:54 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-10-15 17:15:54 +0300 |
commit | cdde4b55c74e7c035f1c8cf8a9c4d5b47f494076 (patch) | |
tree | 422c51fca537cd9ff8a014d6ca1bdd1b5a7b8429 /juick-notifications | |
parent | 3daee57cb833c5fc9cf172c70895cac06e0f57fd (diff) |
notifications: fix FCM error codes
Diffstat (limited to 'juick-notifications')
-rw-r--r-- | juick-notifications/src/main/java/com/juick/components/FirebaseManager.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/juick-notifications/src/main/java/com/juick/components/FirebaseManager.java b/juick-notifications/src/main/java/com/juick/components/FirebaseManager.java index f3f97131..1feee458 100644 --- a/juick-notifications/src/main/java/com/juick/components/FirebaseManager.java +++ b/juick-notifications/src/main/java/com/juick/components/FirebaseManager.java @@ -77,9 +77,9 @@ public class FirebaseManager implements NotificationListener { if (t instanceof FirebaseMessagingException) { FirebaseMessagingException e = (FirebaseMessagingException) t; logger.warn("FirebaseMessaging error: {}", e.getErrorCode()); - if (e.getErrorCode().equals("messaging/invalid-argument") - || e.getErrorCode().equals("messaging/registration-token-not-registered") - || e.getErrorCode().equals("messaging/invalid-registration-token")) { + if (e.getErrorCode().equals("invalid-argument") + || e.getErrorCode().equals("registration-token-not-registered") + || e.getErrorCode().equals("invalid-registration-token")) { // invalid token logger.info("{} is scheduled to remove", token); notificationsManager.addInvalidGCMToken(token); |