Files
daily-notification-plugin/ios
Matthew Raymer d7754752ba feat(ios): implement getNotificationStatus and cancelAllNotifications methods
Implemented status and cancellation methods matching Android functionality:

getNotificationStatus():
- Gets pending notifications from UNUserNotificationCenter
- Retrieves schedules from UserDefaults
- Calculates next notification time from schedules
- Returns status matching Android API structure
- Includes isEnabled, isScheduled, lastNotificationTime, nextNotificationTime, pending count

cancelAllNotifications():
- Removes all pending daily notifications from UNUserNotificationCenter
- Cancels background fetch tasks by identifier
- Clears notification schedules from UserDefaults
- Idempotent (safe to call multiple times)
- Matches Android behavior (cancels alarms, WorkManager jobs, database)

Helper Methods:
- getSchedulesFromUserDefaults() - Retrieves stored schedules
- Improved storeScheduleInUserDefaults() - Prevents duplicates

Progress: 12/52 methods implemented (23% complete)
2025-11-11 01:54:52 -08:00
..