From 5f4f6e1fdb3da7eab183ded6428ed327693e669f Mon Sep 17 00:00:00 2001 From: Valentin REVERSAT Date: Tue, 10 Oct 2023 12:39:03 +0200 Subject: [PATCH] fix(notification): replace `requestPermission` by `requestNotificationsPermission` --- lib/service/notification_service.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/service/notification_service.dart b/lib/service/notification_service.dart index 5b6ffb68..60941c6f 100644 --- a/lib/service/notification_service.dart +++ b/lib/service/notification_service.dart @@ -92,7 +92,8 @@ class NotificationService { localNotifications.resolvePlatformSpecificImplementation< AndroidFlutterLocalNotificationsPlugin>(); - return await androidImplementation?.requestPermission() ?? false; + return await androidImplementation?.requestNotificationsPermission() ?? + false; } return false;