firebase_cloud_messaging_flutter 2.1.2 copy "firebase_cloud_messaging_flutter: ^2.1.2" to clipboard
firebase_cloud_messaging_flutter: ^2.1.2 copied to clipboard

Send Firebase Cloud Messages and manage topics directly from your Dart or Flutter application using the FCM HTTP v1 API. No external server required. Includes native Google Application Default Creden [...]

CHANGELOG #

2.1.2 #

  • DISCONTINUED: This package has been rebranded to firebase_cloud_messaging_dart.
  • Please migrate to the new package to receive future updates and Dart 3 modernizations.

2.1.1 #

This release elevates the package to a production-hardened server-side SDK by introducing native ambient credentials and dedicated topic management.

  • Feat (Auth): Introduced FirebaseCloudMessagingServer.applicationDefault({ required String projectId }). Supports Google Application Default Credentials (ADC) for seamless authentication in Cloud Run, App Engine, and Firebase Functions.
  • Feat (Topic Management): Added subscribeTokensToTopic() and unsubscribeTokensFromTopic(). These utilize the Firebase Instance ID API for efficient batch management (up to 1,000 tokens per request).
  • Refactor (Architecture): Introduced FcmTopicManagement internal class to centralize topic lifecycle logic.
  • Refactor (Breaking): Migrated project-wide filename convention to standard Dart snake_case (e.g., android_config.dart). All internal imports and public exports have been updated.
  • Hardening: Consolidated network logic into a shared, reusable http.Client to prevent socket leaks.
  • Typing: Added missing priority and visibility fields to platform-specific configs.
17
likes
140
points
379
downloads

Documentation

API reference

Publisher

verified publisherottomancoder.com

Weekly Downloads

Send Firebase Cloud Messages and manage topics directly from your Dart or Flutter application using the FCM HTTP v1 API. No external server required. Includes native Google Application Default Credentials (ADC) support.

License

BSD-3-Clause (license)

Dependencies

collection, googleapis_auth, http, json_annotation

More

Packages that depend on firebase_cloud_messaging_flutter