Open Abdulah-butt opened 2 months ago
i have face same issue did get any solution?
i have this problem too
Same problem here, running on Android, any solutions, are we missing some specific setup? Will try iOS pretty soon.
Worked-around using response here: https://github.com/MaikuB/flutter_local_notifications/issues/2315#issuecomment-2136799521
For those that say that they are facing this issue, check to ensure you have done all the configuration mentioned in the readme. If you have done so and still face an issue, please provide a link to a repository hosting a minimal app that can reproduce the problem. This could be one you've created yourself or another way is to fork the repository and update the example app
Edit: please also mention the platform you encounter the issue on. If you provide a the repo, also include mention that Flutter version. Expectation is I should be able to clone the repository and reproduce the issue easily. Providing code snippets doesn't help as it's missing the native configuration
@MaikuB On tap not working for me as well, in IOS.
return await _flutterLocalNotificationsPlugin.initialize( // ignore: prefer_const_constructors InitializationSettings( android: const AndroidInitializationSettings('@mipmap/ic_launcher'), iOS: const DarwinInitializationSettings(onDidReceiveLocalNotification: handleForegroundPayload)), onDidReceiveNotificationResponse: handlePayload, );
Both the handleForegroundPayload or handlePayload never gets invoked when a user taps on the notification when app is in foreground.
Is there any specific IOS configuration that we need to do to handle on tap in IOS for foreground?
Do we need to create/add any notificationCategories during initialization to handle this?
@itsatishay the configuration needed is in the readme. You'll need to provide a link to repo hosting a minimal app that can reproduce the issue. I've asked in other threads that the community provides a link to a minimal repo hosting an app to reproduce the problem but haven't gotten a (favourable) response. This is the best way to identify if there is a legitimate issue or that developers haven't completed the expected configuration
@Abdulah-butt could you provide a repository link of your example code for MaikuB investigate ?