FcmTokenInitResult enum
Outcome of a NotificationService.initializeFcmToken token-capture attempt.
Added in 0.12.0 (BEH-15): initializeFcmToken previously returned
Future<void>. This signal lets callers — notably
NotificationService.initializeNotifications — report an honest partial
result when permission was granted but the token could not be captured or
persisted, rather than unqualified success.
Values
- success → const FcmTokenInitResult
-
The FCM token was captured and persisted, was already current, or FCM was already initialized — nothing further to do.
- captureFailed → const FcmTokenInitResult
-
Permission is fine and a token callback is present, but token capture or persistence failed (null
getToken(), a thrown retrieval error, or a persist failure). The local synced/latch state is deliberately NOT advanced, so the next trigger retries (BEH-3 / BEH-9 / BEH-23). - skippedQuietly → const FcmTokenInitResult
-
Capture was skipped quietly — the enabled-but-unconfigured web case (
AppConfigBase.isWeb && AppConfigBase.fcmWebVapidKey.isEmpty), wheregetToken()would throw on a missing service worker. Logged atlogd, non-alarming, and does not fire the one-time token backfill (BEH-26).
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<
FcmTokenInitResult> - A constant List of the values in this enum, in order of their declaration.