diff --git a/uni/lib/controller/background_workers/notifications.dart b/uni/lib/controller/background_workers/notifications.dart index 7cc56a511..99ae0bee0 100644 --- a/uni/lib/controller/background_workers/notifications.dart +++ b/uni/lib/controller/background_workers/notifications.dart @@ -145,7 +145,8 @@ class NotificationManager { _localNotificationsPlugin.resolvePlatformSpecificImplementation< AndroidFlutterLocalNotificationsPlugin>()!; try { - final permissionGranted = await androidPlugin.requestPermission(); + final permissionGranted = + await androidPlugin.requestNotificationsPermission(); if (permissionGranted != true) { return; } diff --git a/uni/pubspec.lock b/uni/pubspec.lock index 05144b14b..6a7e240f4 100644 --- a/uni/pubspec.lock +++ b/uni/pubspec.lock @@ -442,10 +442,10 @@ packages: dependency: "direct main" description: name: flutter_local_notifications - sha256: "401643a6ea9d8451365f2ec11145335bf130560cfde367bdf8f0be6d60f89479" + sha256: "40e6fbd2da7dcc7ed78432c5cdab1559674b4af035fddbfb2f9a8f9c2112fcef" url: "https://pub.dev" source: hosted - version: "15.1.3" + version: "17.1.2" flutter_local_notifications_linux: dependency: transitive description: @@ -458,10 +458,10 @@ packages: dependency: transitive description: name: flutter_local_notifications_platform_interface - sha256: "7cf643d6d5022f3baed0be777b0662cce5919c0a7b86e700299f22dc4ae660ef" + sha256: "340abf67df238f7f0ef58f4a26d2a83e1ab74c77ab03cd2b2d5018ac64db30b7" url: "https://pub.dev" source: hosted - version: "7.0.0+1" + version: "7.1.0" flutter_localizations: dependency: "direct main" description: flutter diff --git a/uni/pubspec.yaml b/uni/pubspec.yaml index bb858d902..e3a9e19ff 100644 --- a/uni/pubspec.yaml +++ b/uni/pubspec.yaml @@ -30,7 +30,7 @@ dependencies: sdk: flutter flutter_cache_manager: ^3.3.1 flutter_dotenv: ^5.0.2 - flutter_local_notifications: ^15.1.0+1 + flutter_local_notifications: ^17.1.2 flutter_localizations: sdk: flutter flutter_map: ^5.0.0