Skip to content

Commit

Permalink
fix(notification): replace requestPermission by `requestNotificatio…
Browse files Browse the repository at this point in the history
…nsPermission`
  • Loading branch information
vareversat committed Oct 10, 2023
1 parent ec2d704 commit 5f4f6e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/service/notification_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ class NotificationService {
localNotifications.resolvePlatformSpecificImplementation<
AndroidFlutterLocalNotificationsPlugin>();

return await androidImplementation?.requestPermission() ?? false;
return await androidImplementation?.requestNotificationsPermission() ??
false;
}

return false;
Expand Down

0 comments on commit 5f4f6e1

Please sign in to comment.