Pakete, Repositories und App-Kategorien suchen

Cover von easy_notifications
Paketdetailsv1.2.6

easy_notifications

Ein Flutter-Plugin zur Verwaltung lokaler Benachrichtigungen mit erweiterten Sicherheits- und Datenschutzfunktionen. Unterstützt Android, iOS und Web mit umfangreichen Anpassungsoptionen.

AndroidiOSWeb
30-Tage-Downloads
118
Likes
51
Pub-Punkte
130

Paket installieren

flutter pub add easy_notifications

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Easy Notifications ist ein Flutter-Plugin, das die Implementierung lokaler Benachrichtigungen auf Android, iOS und Web vereinfacht. Es legt besonderen Wert auf Sicherheit und Datenschutz und bietet eine starke Schutzfunktion für Benachrichtigungsdaten. Dank umfangreicher Anpassungsmöglichkeiten können Entwickler das Erscheinungsbild und Verhalten von Benachrichtigungen an die Anforderungen ihrer App anpassen. Das Paket gewährleistet zuverlässige Zustellung und Verwaltung von Benachrichtigungen und hält dabei die Konsistenz über Plattformen hinweg. Ideal für Apps, die durch sichere, datenschutzbewusste Warnungen zeitnah mit Nutzern interagieren möchten.

Anwendungsfälle

  • Zeitbasierte Erinnerungen senden
  • Anzeige von Echtzeit-Updates
  • Benutzerengagement über pushähnliche Warnungen
  • Automatisierte Aufgabenbenachrichtigungen
  • Personalisierte Alarmplanung

Hauptmerkmale

  • Erweiterte Sicherheit und Privatsphäre
  • Plattformübergreifende Unterstützung (Android, iOS, Web)
  • Reichhaltige Anpassungsoptionen
  • Sichere Verarbeitung von Benachrichtigungsdaten
  • Zuverlässige lokale Benachrichtigungszustellung

Geeignet für

  • Apps, die sichere lokale Warnungen benötigen
  • Entwickler, die Benutzerprivatsphäre priorisieren
  • Projekte mit plattformübergreifenden Anforderungen
  • benachrichtigungsintensive Anwendungen
  • Teams, die eine einfache Integration suchen

Hinweise

  • Für volle Funktionalität ist eine plattformspezifische Einrichtung erforderlich
  • Die Web-Unterstützung kann im Vergleich zu mobilen Geräten eingeschränkte Funktionen aufweisen
  • Auf einigen Plattformen müssen Berechtigungen manuell behandelt werden
  • Nicht geeignet für Remote- oder servergesteuerte Benachrichtigungen
  • Eingeschränkte erweiterte Planung über grundlegende Zeitauslöser hinaus

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

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.

Kategorien

Abhängigkeiten

Abhängigkeiten 11 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.