-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[firebase_messaging] set notification channel id (notification in background Not working) #88
Comments
@MahmoodBakhshayesh Thanks for flagging this, looks like we don't currently have support for message channels. We should add this. Feel free to submit a PR if you have a solution. |
Any clear documents to setup firebase messaging? |
Any updates? |
Any update for this issue..? |
Any update for this issue..? |
Any updates for this? |
Is there any update for this issue? |
any update? |
Did someone find a workaround for this issue? Thanks |
@NoeLopez are you sure? is it only support for topic? okay, but how group notification works on like whatsapp/gmail? |
@bhanuka96 Do you mean that notifications are grouped when they arrive? |
@NoeLopez I still get this error :( |
yes like this https://developer.android.com/training/notify-user/group . if "A" user sent multiple messages to the "B" user. currently, there are lots of notifications came to in my notification panel, I want to group notification for that. (it's mean like above image like gmail/whatsapp). if "C" user sent multiple message to the "B user". I want to 2 groups |
@bhanuka96 Those types of implementations would have to be done with Local Notification |
@deep01code It would be nice to be able to see your code to see where it goes wrong, remember to add it in Java class and in Android Manifest |
I tried, not working on foreground or background... I saw this react native answer about same issue. I think this part of the firebase_messaging plugin right? invertase/react-native-firebase#449 (comment) |
@bhanuka96 Apparently it seems like if it's a Firebase issue I'm really sorry I can't help you |
I followed exactly the tutorials on youtube on how to setup these notification, they don't do these staffs but they get notifications when the app is teriminated. I don't know what wrong with my code.
_backgroundMessageHandler i even tried calling FlutterLocalNotificationsPlugin, still don't show notifications when the app is terminated. `
|
@braysonjohn148 If want to be notified in your app (via
Optionally handle background messages
By default background messaging is not enabled. To handle messages in the background:
you can find out what the latest version of the plugin is here
and the json that sends from Postman or from firebase in the data part has to go this, very important
Aquí hay un ejemplo del cuerpo de un JSON que debe enviarse desde Postman
Hope this answer can help you solve your problem. Regards |
what i want is when an app is completely terminated. Meaning the phone is either in the pocket or user on other apps. When a new notification arrives the user to get a push notification even when the app is terminated. Currently when i close the app and send the notification. I cannot see the notification in the system tray. I even tried using the firebase console FCM to fire test messages on my app |
@braysonjohn148 that is done in the onLaunch method (it is when the app has closed completely) and onResume is when the app is in the background, you just have to implement there the actions you want it to do |
Thank you save my day 😍😍 |
Where is
|
|
same issue is facing from me also |
Hi @NoeLopez , does this solve the onBackgroundMessage callback issue? Could you help with a full project example on github? |
hi @Gperez88 have you found a fix for this issue? It is not working for me too. |
Does anybody found a workaround or fix to make onBackgroundMessage work? |
hi @deep01code have you found a fix for this issue? It is not working for me too. |
Check this. Firebase Cloud Messaging link --- https://firebase.google.com/docs/cloud-messaging/android/receive#backgrounded |
In order to get ride of this, you need to create android notification channel to your app. Go to this link for more details -- https://developer.android.com/training/notify-user/channels I have uploaded to Github repository -- https://github.com/Stone2517/Truact-1 AndroidManifest.xml
Application.java
strings.xml
|
reinstall the App |
Hey all 👋 As part of our roadmap (#2582) we've just shipped a complete rework of the If you can, please try out the dev release (see the migration guide for upgrading and for changes) and if you have any feedback then join in the discussion here. Given the scope of the rework I'm going to go ahead and close this issue in favor of trying out the latest plugin. Thanks everyone 🤓 |
Describe the bug
the function onResume and onLunch not working on android platform, while they work fine on IOS,
i receive the following message on console instead of printed strings in those functions:
"W/FirebaseMessaging(24847): Missing Default Notification Channel metadata in AndroidManifest. Default value will be used."
onMessage function works fine, the problem is when the app is in background
To Reproduce
try to print something in onResume and onLunch functions
Expected behavior
the functions be called on work fine as they do on IOS
Additional context
my guess is that it has something to do with android notification channel id which should be added in android manifest
when i add that to manifest the message change to :
"Notification Channel set in AndroidManifest.xml has not been created by the app. Default value will be
used."
The text was updated successfully, but these errors were encountered: