awesome_notifications icon indicating copy to clipboard operation
awesome_notifications copied to clipboard

Firebase onMessage listener not working when awsome_notifications is installed

Open maximiliannocker opened this issue 2 years ago • 14 comments

Hi,

If I install awesome_notification then the Firebase onMessage listener in not working anymore. Also other firebase messaging listeners are not working too. Then If I remove the plugin it works again. I hope you can make a fix that works for firebase messaging

maximiliannocker avatar May 25 '22 12:05 maximiliannocker

For me this seems to only happen on iOS. On Android it is working fine.

nsivraj avatar May 26 '22 01:05 nsivraj

Yes it happens only on iOS

maximiliannocker avatar May 26 '22 06:05 maximiliannocker

and what is solution for this? If I can not find a solution, I have to use another package.

gadgetreviews avatar May 26 '22 07:05 gadgetreviews

What version of firebase_messaging are you using?, it works up to firebase_messaging: ^10.0.9, maybe the problem is some change on firebase_messaging after that version.

Glexium avatar May 26 '22 20:05 Glexium

What version of firebase_messaging are you using?, it works up to firebase_messaging: ^10.0.9, maybe the problem is some change on firebase_messaging after that version.

11.4.0

gadgetreviews avatar May 26 '22 21:05 gadgetreviews

I tried downgrading the plugin to 0.7.0-beta.2 and it works fine, however does not work with latest beta version of the plugin. I tried 0.7.0-beta.3+2 and 0.7.0-beta.3+1 with no luck either.

clockwork189 avatar May 26 '22 22:05 clockwork189

It still happens only on iOS, any ideas?

duykhanhhs1 avatar Jun 09 '22 03:06 duykhanhhs1

I tried downgrading the plugin to 0.7.0-beta.2 and it works fine, however does not work with latest beta version of the plugin. I tried 0.7.0-beta.3+2 and 0.7.0-beta.3+1 with no luck either.

What version of firebase_messaging are you using?

duykhanhhs1 avatar Jun 09 '22 03:06 duykhanhhs1

At the time I was using firebase_messaging 11.4.0. I have tried with 11.4.1 and still the same issue.

clockwork189 avatar Jun 09 '22 16:06 clockwork189

At the time I was using firebase_messaging 11.4.0. I have tried with 11.4.1 and still the same issue.

I have tried with firebase_messaging 11.4.0 and awesome_notification 0.7.0-beta.2 but the same issue still happens. Maybe I have to use another package

duykhanhhs1 avatar Jun 10 '22 02:06 duykhanhhs1

I am not sure what ended up changing, if it was something with the other dependencies in my project or what, however the onMessage firebase function "magically" started working for me

clockwork189 avatar Jun 12 '22 19:06 clockwork189

image

@clockwork189

duykhanhhs1 avatar Jun 13 '22 02:06 duykhanhhs1

So what do we do? Do we have to consider the lib unusable together with Firebase Messaging on iOS? Is this going to be fixed? Is this going to remain?

lore-co avatar Aug 12 '22 08:08 lore-co

any updates??

Shams-Mahmoud avatar Aug 22 '22 11:08 Shams-Mahmoud

Guys, this worked for me: https://github.com/firebase/flutterfire/issues/8065#issuecomment-1087062719

using versions:

  • firebase_messaging: 12.0.3
  • awesome_notifications: 0.6.21 or last versions

eduardo-and avatar Sep 12 '22 14:09 eduardo-and

Hi! Sorry for taking so long to respond to your issue on GitHub. I was focused on releasing the new 0.7.0 version of awesome_notifications and awesome_notifications_fcm and i didn't had time enough to do both. But now I can answer all your questions.

So now i'm asking you to recreate this topic using the new issue template. There's a lot of missing informations that i need to understand your problem, and all the instructions are already in the new issue template. Also, remember to check beforehand if your issue was posted by another user.

So I will automatically close all previous issues so far. Sorry for the inconvenience and i will be waiting for your new issue request.

Thank you so much for your support!

rafaelsetragni avatar Sep 29 '22 18:09 rafaelsetragni