Skip to content

Conversation

@hiranya911
Copy link
Contributor

Some FCM errors sends a specific error code embedded in the details section of the response:

{
  "error": {
    "code": 404,
    "message": "App Instance was uninstalled or unregistered.",
    "status": "NOT_FOUND",
    "details": [
      {
        "@type": "type.googleapis.com/google.firebase.fcm.v1.FcmErrorCode",
        "errorCode": "UNREGISTERED"
      }
    ]
  }
}

This PR changes the SDK to use that error code when available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants