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

插件详情v1.1.1

push_notification

用于实现推送通知的库。该模块包含推送通知的主要工作。

AndroidiOS
近 30 天下载
45
喜欢数
59
Pub 分数
120

安装插件

flutter pub add push_notification

插件介绍

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

一个用于在 Android 和 iOS 上实现推送通知的 Flutter/Dart 包。它提供了一个统一的接口来处理注册、接收和管理推送通知,可与后端服务无缝集成。该库简化了与平台特定通知系统的交互,确保设备间行为一致。专为希望借助及时、精准的消息提升应用参与度的开发者设计。

适合场景

  • 发送实时警报
  • 通过通知提升用户参与度
  • 应用状态同步
  • 背景消息处理
  • 远程通知触发

主要特点

  • 跨平台支持(Android 和 iOS)
  • 与 Firebase 或其他后端轻松集成
  • 事件驱动的通知处理
  • 支持前台和后台状态
  • 可自定义的通知负载

适合对象

  • 需要实时更新的应用程序
  • 具有用户参与目标的移动应用
  • 后端集成的消息系统
  • 使用 Firebase 云消息传递的开发人员
  • 构建可扩展通知工作流的团队

使用建议

  • 需要平台特定的设置(例如,FCM 配置)
  • 需要适当的权限处理
  • 某些平台上的后台执行限制
  • 可能需要为自定义通知通道进行额外配置
  • 依赖外部推送服务提供商

原始 README

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

Push Notification

Build Status Coverage Status Pub Version Pub Likes Pub popularity Flutter Platform

Overview

Library for implementing push notifications. The module contains the main work with push notifications.

Example

An example of using the library can be found in example.

  • Create a notification data type through inheritance NotificationPayload.

  • Create a strategy for handling notifications through inheritance PushHandleStrategy.

  • Create a factory of strategies through inheritance PushHandleStrategyFactory.

  • To receive notifications, you need to create an instance. MessagingService.

  • To display notifications, you need to create an instance NotificationController.

  • And pass created instances when creating PushHandler that will create the strategy using the factory.

Installation

Add push_notification to your pubspec.yaml file:

dependencies:
  push_notification: $currentVersion$

At this moment, the current version of push_notification is push_notification version.

Changelog

All notable changes to this project will be documented in this file.

Issues

To report your issues, file directly in the Issues section.

Contribute

If you would like to contribute to the package (e.g. by improving the documentation, fixing a bug or adding a cool new feature), please read our contribution guide first and send us your pull request.

Your PRs are always welcome.

How to reach us

Please feel free to ask any questions about this package. Join our community chat on Telegram. We speak English and Russian.

Telegram

License

Apache License, Version 2.0

所属分类

依赖

依赖清单 1 项

源码仓库

使用此插件的项目

暂无相关数据。