Android 및 iOS에서 푸시 알림을 구현하기 위한 플러터/다트 패키지입니다. 등록, 수신 및 푸시 알림 관리를 위한 통합 인터페이스를 제공하여 백엔드 서비스와의 원활한 통합을 가능하게 합니다. 플랫폼별 알림 시스템과 작업하는 과정을 단순화하고 장치 간 일관된 동작을 보장합니다. 적시에 타겟된 메시지를 통해 앱 참여도를 높이고자 하는 개발자를 위한 것입니다.
사용 사례
실시간 알림 전송
알림을 통한 사용자 참여
앱 상태 동기화
백그라운드 메시지 처리
원격 알림 트리거
주요 기능
크로스 플랫폼 지원 (Android 및 iOS)
Firebase 또는 기타 백엔드와의 간편한 통합
이벤트 기반 알림 처리
전경 및 배경 상태 지원
사용자 정의 알림 페이로드
적합한 대상
실시간 업데이트가 필요한 앱
사용자 참여 목표를 가진 모바일 앱
백엔드 통합 메시징 시스템
Firebase Cloud Messaging 사용 개발자
확장 가능한 알림 워크플로를 구축하는 팀
고려 사항
플랫폼별 설정이 필요합니다 (예: FCM 구성)
적절한 권한 처리가 필요합니다
일부 플랫폼에서의 백그라운드 실행 제한
사용자 지정 알림 채널을 위해 추가 구성이 필요할 수 있습니다
외부 푸시 서비스 공급자에 따라 다름
원본 README
연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.
Push Notification
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 .
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.