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

+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.