FcmErrorCode enum

Known error codes returned by the FCM HTTP v1 API.

Map an unknown code to FcmErrorCode.unknown so callers always get a typed value even when Google adds new codes in the future.

Inheritance
Available extensions

Values

unregistered → const FcmErrorCode

The device token is no longer valid — remove it from your database.

senderIdMismatch → const FcmErrorCode

The device token does not match the sender ID / project.

invalidArgument → const FcmErrorCode

The request was invalid (bad payload, wrong JSON, etc.).

quotaExceeded → const FcmErrorCode

The app quota for messages has been exceeded. Back off and retry.

unavailable → const FcmErrorCode

The FCM service is temporarily unavailable. Retry with back-off.

internal → const FcmErrorCode

An internal error occurred on the FCM server side.

thirdPartyAuthError → const FcmErrorCode

A third-party authentication error occurred (e.g., APN certificate).

unknown → const FcmErrorCode

Catch-all for any future or unrecognised FCM error codes.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<FcmErrorCode>
A constant List of the values in this enum, in order of their declaration.