FcmTokenPolicy class
Prevents FCM registration against backends that cannot issue real tokens.
Firebase Emulator Suite does not emulate Cloud Messaging. Demo project IDs
are also deliberately isolated from production, so asking them for an FCM
token can only fail (and can surface messaging/unsupported-browser on
web). In both cases token registration must be a no-op.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- 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
Static Methods
-
forCurrentBackend(
) → bool -
isFirebaseDemoProject(
String? projectId) → bool -
shouldSkipRegistration(
{required bool usesFirebaseEmulators, String? firebaseProjectId}) → bool
Constants
- firebaseDemoProjectPrefix → const String