fix(windows): prevent crash when notification service is unavailable (#1472)

This commit is contained in:
Levi authored and GitHub committed 2026-09-05 20:51:07 +08:00
1 parent f2145de571
commit 8f3cf35162
2 files changed
+37 -15

No files matched your search

+25 -15
View File
@@ -489,35 +489,45 @@ packages:
flutter_local_notifications:
dependency: "direct main"
description:
name: flutter_local_notifications
sha256: "2b50e938a275e1ad77352d6a25e25770f4130baa61eaf02de7a9a884680954ad"
url: "https://pub.dev"
source: hosted
version: "20.1.0"
path: flutter_local_notifications
ref: windows-fixCrashPushNotificationServiceUnavailable
resolved-ref: f05acf0ba38f5bd869078edc0a8783746a3385f2
url: "https://github.com/j-bibodi/flutter_local_notifications.git"
source: git
version: "22.2.0"
flutter_local_notifications_linux:
dependency: transitive
description:
name: flutter_local_notifications_linux
sha256: dce0116868cedd2cdf768af0365fc37ff1cbef7c02c4f51d0587482e625868d0
sha256: "9ca97e63776f29ab1b955725c09999fc2c150523269db150c39274f2a43c5a8b"
url: "https://pub.dev"
source: hosted
version: "7.0.0"
version: "8.0.1"
flutter_local_notifications_platform_interface:
dependency: transitive
description:
name: flutter_local_notifications_platform_interface
sha256: "23de31678a48c084169d7ae95866df9de5c9d2a44be3e5915a2ff067aeeba899"
sha256: "43c3761d916c9bd3d5c7ebbc44d82f4990329840c0c5d62ad5260cc1b5d399bd"
url: "https://pub.dev"
source: hosted
version: "10.0.0"
flutter_local_notifications_windows:
version: "12.2.0"
flutter_local_notifications_web:
dependency: transitive
description:
name: flutter_local_notifications_windows
sha256: e97a1a3016512437d9c0b12fae7d1491c3c7b9aa7f03a69b974308840656b02a
name: flutter_local_notifications_web
sha256: "516afaf97a2d1e67a036c6617321b00d205d72f7a67b6eccf936cd565f985878"
url: "https://pub.dev"
source: hosted
version: "2.0.1"
version: "1.0.0"
flutter_local_notifications_windows:
dependency: "direct overridden"
description:
path: flutter_local_notifications_windows
ref: windows-fixCrashPushNotificationServiceUnavailable
resolved-ref: f05acf0ba38f5bd869078edc0a8783746a3385f2
url: "https://github.com/j-bibodi/flutter_local_notifications.git"
source: git
version: "3.1.1"
flutter_localizations:
dependency: "direct main"
description: flutter
@@ -1464,10 +1474,10 @@ packages:
dependency: transitive
description:
name: timezone
sha256: dd14a3b83cfd7cb19e7888f1cbc20f258b8d71b54c06f79ac585f14093a287d1
sha256: "981d1020d6ef8fe1e7b3de5054e5b25579ae7c403d7734adc508ffc47668e9cb"
url: "https://pub.dev"
source: hosted
version: "0.10.1"
version: "0.11.1"
tray_manager:
dependency: "direct main"
description:
+12
View File
@@ -83,6 +83,18 @@ dependencies:
go_router: ^16.2.1
dependency_overrides:
# Prevent a native Windows crash when the push notification service is unavailable.
# Keep this fork until https://github.com/MaikuB/flutter_local_notifications/pull/2813 is merged and released.
flutter_local_notifications:
git:
url: https://github.com/j-bibodi/flutter_local_notifications.git
ref: windows-fixCrashPushNotificationServiceUnavailable
path: flutter_local_notifications
flutter_local_notifications_windows:
git:
url: https://github.com/j-bibodi/flutter_local_notifications.git
ref: windows-fixCrashPushNotificationServiceUnavailable
path: flutter_local_notifications_windows
# Upstream initializes a Windows Geolocator when the plugin registers, which
# makes Windows report location access even when the app never requests it.
# Keep this fork until https://github.com/Baseflow/flutter-permission-handler/issues/1394 is fixed and released.