Skip to content

Commit 3934347

Browse files
authored
fix to throw Unimplemented when calling zonedSchedule on Linux (#2023)
1 parent 7c3de83 commit 3934347

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

flutter_local_notifications/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
# [15.0.0-dev.2]
2+
* [Linux] **Breaking change** calling `zonedSchedule` on Linux will now throw an `UnimplementedError` to align with how their is a Linux implementation but the method hasn't been implemented
3+
14
# [15.0.0-dev.1]
25

36
* **Breaking change** removed deprecated `schedule`, `showDailyAtTime` and `showWeeklyAtDayAndTime` methods. Notifications that were scheduled prior to this release should still work
47
* **Breaking change** removed `Time` class
58
* [Android] updated tags used when writing error logs. For corrupt scheduled notifications and error is logged the tag is now `ScheduledNotifReceiver` instead of `ScheduledNotifReceiver`. When logging that exact alarm permissions have been revoked the the tag is now `FLTLocalNotifPlugin` instead of `notification`
6-
* **Breaking change** [iOS][macOS] added supported for banner and list presentation options for iOS and macOS that is applicable for iOS 14.0 or newer and macOS 11 or newer. This is a breaking change as the values default to true and the alert presentation option is no longer applicable on these OS versions as Apple has deprecated it to be replaced by the banner and list presentations. Please ensure that if you target these OS versions that you configure the options appropriately for your application.
9+
* [iOS][macOS] **Breaking change** added supported for banner and list presentation options for iOS and macOS that is applicable for iOS 14.0 or newer and macOS 11 or newer. This is a breaking change as the values default to true and the alert presentation option is no longer applicable on these OS versions as Apple has deprecated it to be replaced by the banner and list presentations. Please ensure that if you target these OS versions that you configure the options appropriately for your application.
710
* Updated API documentation related to the iOS/macOS notification presentation options to include links to Apple's documentations to show what they correspond to
811

912
# [14.1.1]

flutter_local_notifications/lib/src/flutter_local_notifications_plugin.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -373,6 +373,8 @@ class FlutterLocalNotificationsPlugin {
373373
id, title, body, scheduledDate, notificationDetails.macOS,
374374
payload: payload,
375375
matchDateTimeComponents: matchDateTimeComponents);
376+
} else {
377+
throw UnimplementedError('zonedSchedule() has not been implemented');
376378
}
377379
}
378380

flutter_local_notifications/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: flutter_local_notifications
22
description: A cross platform plugin for displaying and scheduling local
33
notifications for Flutter applications with the ability to customise for each
44
platform.
5-
version: 15.0.0-dev.1
5+
version: 15.0.0-dev.2
66
homepage: https://github.com/MaikuB/flutter_local_notifications/tree/master/flutter_local_notifications
77
issue_tracker: https://github.com/MaikuB/flutter_local_notifications/issues
88

0 commit comments

Comments
 (0)