Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[macOS] Fatal error: Unexpectedly found nil while unwrapping an Optional value #1623

Closed
womandroid opened this issue Jun 9, 2022 · 1 comment · Fixed by #1628
Closed

Comments

@womandroid
Copy link

womandroid commented Jun 9, 2022

flutterLocalNotificationsPlugin.zonedSchedule(
        0,
        "Hello",
        "Hello world",
        tz.TZDateTime(tz.getLocation(myLocation), 2022, 6, 9, 9, 46),
        const NotificationDetails(macOS: MacOSNotificationDetails(presentAlert: true, presentSound: true)),
        uiLocalNotificationDateInterpretation: UILocalNotificationDateInterpretation.absoluteTime,
        androidAllowWhileIdle: true,
        payload: null,
        matchDateTimeComponents: DateTimeComponents.dayOfMonthAndTime,
    );

On iOS is ok, but on macOS, if the matchDateTimeComponents is set to dayOfMonthAndTime or dateAndTime, app will crash, but dayOfWeekAndTime is ok. The error message is:

flutter_local_notifications/FlutterLocalNotificationsPlugin.swift:413: Fatal error: Unexpectedly found nil while unwrapping an Optional value

version: 9.6
macOS: 12.4

@MaikuB
Copy link
Owner

MaikuB commented Jun 16, 2022

Thanks for finding and reporting the issue. This should be fixed in 9.6.1 now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants