搜索插件、代码仓与 APP 分类

插件详情v17.0.1

firebase_messaging

适用于 Firebase 云消息传递的 Flutter 插件,一种跨平台的消息解决方案,可让您在 Android 和 iOS 上可靠地传递消息。

AndroidiOSWebmacOS
近 30 天下载
427万
喜欢数
3950
Pub 分数
160

安装插件

flutter pub add firebase_messaging

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Firebase Messaging 是一个 Flutter 插件,可使用 Firebase Cloud Messaging 在 Android、iOS、Web 和 macOS 上实现消息的可靠传递。它支持通知消息和数据消息,使应用程序即使在关闭或后台运行时也能接收实时更新。该插件与 Firebase 服务无缝集成,并提供处理消息接收、用户权限和令牌管理的工具。它非常适合发送推送通知、动态更新应用内容,并通过及时提醒提高用户参与度。

适合场景

  • 向用户发送推送通知
  • 提供实时应用更新
  • 通过有针对性的消息吸引用户
  • 处理背景和前台消息事件
  • 实现静默数据消息

主要特点

  • 跨平台支持(Android、iOS、Web、macOS)
  • 支持通知和数据消息
  • 设备注册的令牌管理
  • 背景和前景消息处理
  • 与 Firebase 控制台集成

适合对象

  • 需要推送通知的应用
  • 使用 Firebase 生态系统的项目
  • 实时消息功能
  • 用户参与活动
  • 跨平台移动应用程序

使用建议

  • 需要 Firebase 项目设置
  • 需要在 iOS 上正确处理权限
  • Web 支持需要额外的配置
  • 背景消息处理可能需要特定于平台的代码
  • 限制为 Firebase 云消息传递后端

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Flutter + Firebase logo

FlutterFire

Follow on Twitter Maintained with Melos OSSF scorecard


[Changelog] • [Packages]


FlutterFire is a set of Flutter plugins that enable Flutter apps to use Firebase services. You can follow an example that shows how to use these plugins in the Firebase for Flutter codelab.

Flutter is Google’s UI toolkit for building beautiful, natively compiled applications for mobile, web, and desktop from a single codebase. Flutter is used by developers and organizations around the world, and is free and open source.


Documentation


Stable Plugins

Name pub.dev Firebase Product Documentation View Source Android iOS Web MacOS Windows
Analytics Analytics pub.dev badge 🔗 📖 firebase_analytics ✔ ✔ ✔ β N/A
App Check App Check pub.dev badge 🔗 📖 firebase_app_check ✔ ✔ ✔ β N/A
Authentication Authentication pub.dev badge 🔗 📖 firebase_auth ✔ ✔ ✔ β (*)
Cloud Firestore Cloud Firestore pub.dev badge 🔗 📖 cloud_firestore ✔ ✔ ✔ β (*)
Cloud Functions Cloud Functions pub.dev badge 🔗 📖 cloud_functions ✔ ✔ ✔ β N/A
Cloud Messaging Cloud Messaging pub.dev badge 🔗 📖 firebase_messaging ✔ ✔ ✔ β N/A
Cloud Storage Cloud Storage pub.dev badge 🔗 📖 firebase_storage ✔ ✔ ✔ β (*)
Core Core pub.dev badge 🔗 📖 firebase_core ✔ ✔ ✔ β (*)
Crashlytics Crashlytics pub.dev badge 🔗 📖 firebase_crashlytics ✔ ✔ N/A β N/A
Data Connect Data Connect pub.dev badge 🔗 📖 firebase_data_connect ✔ ✔ ✔ N/A N/A
In-App Messaging In-App Messaging pub.dev badge 🔗 📖 firebase_in_app_messaging ✔ ✔ N/A N/A N/A
Installations Installations pub.dev badge 🔗 📖 firebase_app_installations ✔ ✔ ✔ β N/A
Performance Monitoring Performance Monitoring pub.dev badge 🔗 📖 firebase_performance ✔ ✔ ✔ N/A N/A
Realtime Database Realtime Database pub.dev badge 🔗 📖 firebase_database ✔ ✔ ✔ β N/A
Remote Config Remote Config pub.dev badge 🔗 📖 firebase_remote_config ✔ ✔ ✔ β N/A

(*) for development only. Production on Windows is not supported.

Preview Plugins

Name pub.dev Firebase Product Documentation View Source Android iOS Web MacOS
ML Model Downloader (deprecated) ML Model Downloader pub.dev badge 🔗 📖 firebase_ml_model_downloader ✔ ✔ N/A β

Issues

Please file FlutterFire specific issues, bugs, or feature requests in our issue tracker.

Plugin issues that are not specific to FlutterFire can be filed in the Flutter issue tracker.

Contributing

If you wish to contribute a change to any of the existing plugins in this repo, please review our contribution guide and open a pull request.

所属分类

依赖

依赖清单 5 项

  • firebase_core^5.1.0
  • firebase_core_platform_interface^8.1.1
  • firebase_messaging_platform_interface^4.11.1
  • firebase_messaging_web^4.3.1
  • meta^1.8.0

源码仓库

使用此插件的项目

所在榜单