Closed dokumanx closed 3 years ago
@MaikuB Hi. Can you help me with the error? I have been blocked for a while.
Package name comes null. It causes this error. Check the below PR out to see it in detail.
https://github.com/rafaelsetragni/awesome_notifications/pull/192
Do you have a link to a minimal app that can reproduce the error so that this would help verify that a fix works? Not that sure if that code snippet you have there is sufficient as I had an app to test integration with FCM but hadn't run into the error and haven't heard of others run into the same issue when using FCM as even the example app for the Flutter FCM makes use of this plugin, albeit an older version but should have the same code for getting the launch intent
Unfortunately, the above code is the only service that I used for notifications. And the error message is clear and shows the reason. For some reason, the package name is not visible in the plugin. And we had to check whether it is null. If it is null we give the name explicitly. I will try to use flutter_local_notification
package one more time. And try to reproduce and fix this issue for anyone who deals with it. If you need more about the issue let me know.
As there are no steps to reproduce this, I'm going to have to close this for now. There was another similar issue opened at #1219 and it was solved. This turned out to be a configuration problem with another dependency. One of the official Flutter plugins also makes use of the same Android API to get the launch intent as well and I haven't seen issues reported on it either. One thing I want to point out is that the approach taken to solve the issue in the other notifications plugin that you showed may not work in the scenario where Flutter is added to an existing app
Moi aussi j'ai la meme erreur
Same error. Have you solved this issue? @dokumanx
My env
same error :( Flutter version 2.10.4 was working fine and the suddenly stopped
Mon problème étais au niveau du fichier manifest.xml
In my case, Intent-filter for deep link makes exception. After deleting the below code in AndroidManifest.xml, exception disappeared.
same error :(
same error, any solutions to this? @seungku I am not using deep links in my app.
Describe the bug When I catch the notification from FCM, after calling
await _localNotification.show(0, title, body, _details);
, I am getting this error.To Reproduce
Run the code below .
Flutter sdk version: 2.0.5 Dart sdk version: ">=2.10.0 <3.0.0" flutter_local_notifications version: ^5.0.0+4
Expected behavior
It should display notification.
Sample code to reproduce the problem
Below code my notification service.