Not getting any callback for received notifications, and redirection on notification clicks is also not working.
Hello,
I hope you are doing well.
Could you please check the issue below and help me find a possible solution at your earliest convenience?
FYI: The functionality is working fine on iOS.
We are receiving notifications on all Android devices, but on some devices running Android 14, the notifications arrive but do not trigger any flutter_local_notifications methods. Additionally, clicking on the notifications does not work as expected, as no trigger or callback is received in any method.
Currently facing in below devices :
- POCO M4 - Android 14
- Samsung F34 - Android 14
- Realme - RMX3395 - Android 14
We would really appreciate your support in resolving this issue, as it is critical for our application. Please let me know if you need any additional details.
Thank you !!
You'll need to provide a link to a repository hosting a minimal app that can reproduce the problem. Note that I don't have access to various devices either. If you're experiencing device-specific issues then my suggestion is you investigate further, inspect device logs etc. This may lead to contributing back to the plugin that is developed in spare time or you may find that there is device-specific setup/issues that is outside the control of the plugin
I've debug every methods and code of firebase_messaging and flutter_local_notification that required to execute this but i'm not getting any callback. Push notifications are receiving in foreground as well background and on click of it app is also opening but neither notificationTapBackground/onDidReceiveLocalNotification/ FirebaseMessaging.instance.getInitialMessage()/ FirebaseMessaging.onMessageOpenedApp/FirebaseMessaging.onMessage calling. So due to that the respected screens are not opening as well as i'm not able to save my notifications.
As Maiku said, it's hard for us to debug if you're not sharing your code. Also, he mentioned that we don't have access to every device out there, so in my opinion your next step would be to run flutter build apk, then plug in a device that is known to work, run flutter install, and ensure that your callbacks are being run. Then, plug in the known bad device, run flutter install, and confirm that your callback is not running. Using the same APK ensures there is no difference in your code, this plugin's version, or even Flutter's version.
Also be sure to give the android setup guide and the README a read, and be sure that you can really track that your callback is being run even in the background, without UI, for example, by creating and writing to a file you can check later.