パッケージ、リポジトリ、アプリカテゴリを検索

easy_notifications のカバー
パッケージ詳細v1.2.6

easy_notifications

強化されたセキュリティとプライバシー機能を備えたローカル通知を処理するFlutterプラグインです。Android、iOS、Webプラットフォームをサポートし、豊富なカスタマイズオプションを提供します。

AndroidiOSWeb
30日間ダウンロード
118
いいね数
51
Pub ポイント
130

パッケージをインストール

flutter pub add easy_notifications

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

Easy Notifications は、Android、iOS、Web プラットフォームにおけるローカル通知の実装を簡素化することを目的とした Flutter プラグインです。セキュリティとプライバシーを重視し、通知データに対する堅固な保護を提供します。豊富なカスタマイズオプションにより、開発者はアプリに応じて通知の外観や挙動をカスタマイズできます。このパッケージは、通知の信頼性ある配信と管理を保証しながら、クロスプラットフォームでの一貫性を維持します。タイムリーなユーザー参加を求めるアプリに最適です。

用途

  • 時刻に基づくリマインダーを送信する
  • リアルタイムの更新を表示しています
  • プッシュ通知のようなアラートによるユーザー参加
  • 自動タスクの通知
  • パーソナライズされたアラートスケジューリング

主な機能

  • 強化されたセキュリティとプライバシー
  • クロスプラットフォーム対応(Android、iOS、Web)
  • 高度なカスタマイズオプション
  • 通知データのセキュアな処理
  • 信頼できるローカル通知の配信

適している対象

  • 安全なローカルアラートを必要とするアプリ
  • ユーザーのプライバシーを最優先する開発者
  • クロスプラットフォーム要件を備えたプロジェクト
  • 通知が多くなるアプリケーション
  • 簡単な統合を求めるチーム

注意事項

  • 完全な機能を実現するには、プラットフォーム固有の設定が必要です
  • Web サポートの機能は、モバイルと比較して制限されている可能性があります
  • 一部のプラットフォームでは、権限を手動で処理する必要があります
  • リモートまたはサーバー駆動の通知には適していません
  • 基本的な時刻トリガーを超える高度なスケジューリングは限定的

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。

Easy Notifications

Easy Notifications Logo

Pub Version License: MIT Platform Support Flutter Support Pub Points Support me

A secure and privacy-focused Flutter plugin for handling local notifications with enhanced features and SOC 2 compliance considerations. Supports Android, iOS, Web platforms.

Features

  • 🔒 Secure handling of notification data
  • 🎯 Precise scheduling with timezone support
  • 🖼️ Rich media notifications (images, custom styles)
  • 📱 Cross-platform support (Android, iOS, Web)
  • 🔐 Granular permission controls
  • 📋 Action buttons support
  • ⏰ Exact timing with background wake-up support
  • 🛡️ Privacy-first approach
  • 🎨 Highly customizable appearance (NotificationStyle)
  • 🔧 Advanced configuration (NotificationSettings)
  • 🔄 JSON serialization support

Getting Started

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  easy_notifications: ^1.2.5
Platform Setup
Android

Add the following permissions to your AndroidManifest.xml:

<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
<uses-permission android:name="android.permission.POST_NOTIFICATIONS"/>

This plugin depends on flutter_local_notifications, which requires Android core library desugaring. Add this to your app's android/app/build.gradle.kts:

android {
  //...
  compileOptions {
    isCoreLibraryDesugaringEnabled = true
  }
}

dependencies {
  coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.4")
}

(build.gradle instead of build.gradle.kts? See the Android docs for the Groovy syntax.)

iOS

Add the following keys to your Info.plist:

<key>UIBackgroundModes</key>
<array>
    <string>fetch</string>
    <string>remote-notification</string>
</array>
Web

To enable web notifications, you need to add the following script to your index.html file:

<script>
  if ('Notification' in window) {
    Notification.requestPermission().then(permission => {
      if (permission === 'granted') {
        console.log('Notification permission granted.');
      }
    });
  }
</script>
Basic Usage
// Initialize the plugin
await EasyNotifications.init();

// Show a simple notification
await EasyNotifications.show(
  title: 'Hello!',
  body: 'This is a notification',
);

// Show notification with image and custom style
await EasyNotifications.show(
  title: 'Styled Notification',
  body: 'With custom appearance',
  style: NotificationStyle(
    backgroundColor: '#FFFFFF',
    titleColor: '#000000',
    padding: const EdgeInsets.all(16),
  ),
);

// Schedule a notification
await EasyNotifications.schedule(
  title: 'Reminder',
  body: 'Time for your meeting!',
  scheduledDate: DateTime.now().add(Duration(hours: 1)),
);

Usage

EasyNotifications.showMessage(
  title: 'New Message',
  body: 'You have a new notification',
  id: 1001, // Optional custom ID
);

Notifications Preview

Preview

Recent Updates

1.2.6
  • Removed inaccurate return-value docs on hide(), updateMessage(), and scheduleMessage()
  • Documented the Android core library desugaring setup required by flutter_local_notifications
1.2.5
  • Fixed web notifications registration
  • Added proper error handling for web platform
1.2.4
  • Added back NotificationLevel class for backwards compatibility
1.2.3
  • Fixed platform support documentation
  • Removed unsupported platforms from pubspec.yaml

Security & Privacy

Data Handling
  • 🔐 All sensitive data encrypted at rest
  • 🗑️ Automatic cleanup of temporary files
  • 📁 Secure local storage practices
Compliance
  • SOC 2 Type II compliant architecture
  • GDPR-ready data processing
  • CCPA privacy controls

Contributing

We welcome contributions! Please see our contributing guide.

License

MIT License - see LICENSE for details.

カテゴリー

依存関係

依存関係一覧 11 件

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。