I add flutter_local_notifications
dependency and setup manifest file (added permission and receives) but notify is not working, do I need more project setting except for the manifest permission for android?
Asked
Active
Viewed 517 times
-1

Andronicus
- 25,419
- 17
- 47
- 88
1 Answers
0
Have you initialized FlutterLocalNotificationsPlugin? If no then try to add below statements in your initState() as below
@override
void initState() {
super.initState();
FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin = new
FlutterLocalNotificationsPlugin();
// initialise the plugin. app_icon needs to be a added as a drawable resource to the Android head project
var initializationSettingsAndroid =
new AndroidInitializationSettings('ic_launcher');
var initializationSettingsIOS = IOSInitializationSettings(
onDidReceiveLocalNotification: onDidReceiveLocalNotification);
var initializationSettings = InitializationSettings(
initializationSettingsAndroid, initializationSettingsIOS);
flutterLocalNotificationsPlugin.initialize(initializationSettings,
onSelectNotification: onSelectNotification);
}
try this and let me know

Harish Penta
- 470
- 1
- 7
- 20
-
Yes, I Initialize it too, I do all required setup but I don't know why it not working... – Eyub Zêwe Jan 25 '20 at 15:57