fix(android): configure native fetcher, use DailyNotificationFetchWorker, and cancel notifications on dismiss
Fix three critical issues in the Android notification system: 1. configureNativeFetcher() now actually calls nativeFetcher.configure() method - Previously only stored config in database without configuring fetcher instance - Added synchronous configure() call with proper error handling - Stores valid but empty config entry if configure() fails to prevent downstream errors - Adds FETCHER|CONFIGURE_START and FETCHER|CONFIGURE_COMPLETE instrumentation logs 2. Prefetch operations now use DailyNotificationFetchWorker instead of legacy FetchWorker - Replaced FetchWorker.scheduleDelayedFetch() with WorkManager scheduling - Uses correct input data format (scheduled_time, fetch_time, retry_count, immediate) - Enables native fetcher SPI to be used for prefetch operations - Handles both delayed and immediate prefetch scenarios 3. Notification dismiss now cancels notification from NotificationManager - Added notification cancellation before removing from storage - Uses notificationId.hashCode() to match display notification ID - Ensures notification disappears immediately when dismiss button is clicked - Adds DN|DISMISS_CANCEL_NOTIF instrumentation log Version bump: 1.0.8 → 1.0.11
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@timesafari/daily-notification-plugin",
|
||||
"version": "1.0.8",
|
||||
"version": "1.0.11",
|
||||
"description": "TimeSafari Daily Notification Plugin - Enterprise-grade daily notification functionality with dual scheduling, callback support, TTL-at-fire logic, and comprehensive observability across Mobile (Capacitor) and Desktop (Electron) platforms",
|
||||
"main": "dist/plugin.js",
|
||||
"module": "dist/esm/index.js",
|
||||
|
||||
Reference in New Issue
Block a user