Skip to content

Commit 8a77b5f

Browse files
authored
fix docs for Android notification permission (#2113)
based on the latest breaking changes, the name for he request permission for notifications on Android is wrong. Current description: AndroidFlutterLocalNotificationsPlugin>().requestPermission(); New description: AndroidFlutterLocalNotificationsPlugin>().requestNotificationsPermission();
1 parent f59f7eb commit 8a77b5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flutter_local_notifications/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ From Android 13 (API level 33) onwards, apps now have the ability to display a p
268268
FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin =
269269
FlutterLocalNotificationsPlugin();
270270
flutterLocalNotificationsPlugin.resolvePlatformSpecificImplementation<
271-
AndroidFlutterLocalNotificationsPlugin>().requestPermission();
271+
AndroidFlutterLocalNotificationsPlugin>().requestNotificationsPermission();
272272
```
273273
274274
### Custom notification icons and sounds

0 commit comments

Comments
 (0)