notification_sync_kit 0.1.0
notification_sync_kit: ^0.1.0 copied to clipboard
Capture Android notifications, persist them to a local queue, and sync them to your server via HTTP with Bearer token auth and automatic retry.
Changelog #
All notable changes to notification_sync_kit will be documented in this file.
The format follows Keep a Changelog, and this project adheres to Semantic Versioning.
0.1.0 — 2026-05-12 #
Added #
NotificationRecordmodel with full JSON serialization (toJson,fromJson,encodeList,decodeList) and afromServiceEventfactory.NotificationListenerController— wrapsnotification_listener_serviceand exposes incoming notifications as a typedStream<NotificationRecord>.NotificationQueueStore—SharedPreferences-backed persistent queue withadd,readAll,count,removeById, andremoveByIds.NotificationUploader— HTTP POST with optional Bearer token auth, configurable endpoint, and graceful error handling.NotificationSyncManager— periodic (default 30 s) flush of queued records with automatic removal of successfully uploaded entries and retry of failures.NotificationDetailPage— optional Flutter widget to display a singleNotificationRecordwith normalized and raw JSON views.- Barrel export at
lib/notification_sync_kit.dartfor a single import. - Example app in
example/demonstrating instant-upload + queue-fallback flow.