flutter_local_notifications drops scheduled alerts on non-Gregorian device calendars
Scheduled notifications built with zonedSchedule on iOS and macOS silently fail to fire when the device calendar is set to Islamic, Buddhist, or Japanese. The plugin decomposes the target date using the device's current calendar, so Gregorian dates get converted into Hijri or other components that UNCalendarNotificationTrigger reads as a date hundreds of years in the past. The trigger is discarded without any error or log. The fix forces a Gregorian calendar for the decomposition on both platforms, a two-line change per platform. The developer confirmed the fix on an iOS Simulator set to an Arabic Saudi locale, but has not yet tested the Thai Buddhist or Japanese imperial calendars.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in