패키지, 저장소 및 앱 카테고리 검색

easy_notifications 표지
패키지 상세v1.2.6

easy_notifications

강화된 보안 및 개인정보 보호 기능을 갖춘 로컬 알림을 처리하는 플러터 플러그인입니다. Android, iOS 및 웹 플랫폼을 지원하며 풍부한 사용자 정의 옵션을 제공합니다.

AndroidiOSWeb
30일 다운로드
118
좋아요
51
Pub 점수
130

패키지 설치

flutter pub add easy_notifications

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Easy Notifications는 Android, iOS 및 웹 플랫폼에서 로컬 알림을 구현하는 것을 간소화하기 위해 설계된 Flutter 플러그인입니다. 보안과 프라이버시를 중시하며 알림 데이터에 대한 강력한 보호 기능을 제공합니다. 풍부한 사용자 정의 옵션을 통해 개발자는 앱의 요구 사항에 맞게 알림의 외관과 동작을 조정할 수 있습니다. 패키지는 알림의 신뢰성 있는 전달과 관리를 보장하면서도 크로스플랫폼 일관성을 유지합니다. 안전하고 프라이버시를 고려한 알림을 통해 사용자와 시기적절하게 소통해야 하는 앱에 적합합니다.

사용 사례

  • 시간 기반 알림 보내기
  • 실시간 업데이트 표시
  • 푸시 알림과 유사한 경고를 통한 사용자 참여
  • 자동 작업 알림
  • 개인화된 알림 스케줄링

주요 기능

  • 강화된 보안 및 개인정보 보호
  • 크로스 플랫폼 지원 (Android, iOS, 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 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.