搜尋套件、儲存庫與 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 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。