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
[Android][messaging] No notification heads up #500
Comments
Could you try to add the
|
I tried but it did not change anything. But I think this property is only for localeNotification not for remote one. |
I just noticed that this is a duplicate of #357 but i would like to not use the "custom_notification" approach, is there a proper solution now to do that? (if not, can close the issue) |
@theohdv as far as I can tell from the code in @chrisbianca this seems non-standard, I was wondering, why do we need to provide that attribute? I guess at this point I may as well write my own |
Thanks for reporting. We're aware of lots of issues with notifications and will be addressing them all as part of the v3.2.0 release stream. Please see #595 for updates. |
@chrisbianca I'm experiencing this issue too. If I delete the |
Good news, the long awaited alpha of our messaging and notifications overhaul is now available!! Check out the release notes here: https://github.com/invertase/react-native-firebase/releases/tag/v4.0.0-alpha.1 If you have any comments and suggestions or want to report an issue, come find us on Discord |
Hi ! Congrats releasing RNFirebase v4! |
I'm facing the same issue. The notification arrives but it is shown on the tray bar only. |
Im having the same problem on iOS. It was working for a time too, now it isn't. When the phone is in use, scheduled notifications only show up in the tray. They show up on lock screen as well if delivered when the phone is off. Notifications from FCM only show up in the tray, not even on lock screen. |
@maggialejandro @tpucci any luck? This is killing me right now |
@kevinEsherick not yet. This is our FCM payload $post = [
'to' => $to,
'priority' => 'high',
'content_available' => true,
'show_in_foreground' => true,
'notification' => array(
'time_to_live' => 172800,
"sound" => "default",
"lights" => true,
'color' => '#3f78c3',
'title' => $notification['title'],
'body' => $notification['body'],
'priority' => 'high',
'tag' => $notification['id'],
'icon' => 'ic_notif',
'image' => 'ic_launcher',
'largeIcon' => 'ic_launcher',
'smallIcon' => 'ic_launcher'
),
'data' => [
'notificationId' => $notification['notificationId'],
'title' => $notification['title'],
'body' => $notification['body'],
'iso' => $notification['iso'],
],
]; |
Please open this issue. It is still not working. |
Guys, in my case the issue were notification settings in phone settings -> installed apps -> Custom notification. When I've added -> on iOS notifications are received only on release build. Don't know if Android debug build of app can receive them. -> Android Studio's Logcat is worth checking - here: https://stackoverflow.com/questions/25610936/enable-logcat-on-release-build-in-android-studio you can see how to access device' logs on release build. Even if nothing shows up - there are some logs worth to check. -> I have a different problem - notifications showing up only on locked screen. Showing on unlocked screen is indicated by 'floating notifications' setting which have to be turned on by the user. I don't know how to set it up automatically on app install. Anyone knows something about it? 😃 |
@whitefox920, I was having problems with this as well but I overlooked this piece of documentation. Follow that and it should work properly. If you're using the Firebase Admin SDK you also need to set your message priority to be Hope this helps! |
Someone can share the json that he send? @theohdv @edwardrowens I send this and this does not work for me }` |
@theohdv If u can tell how u fixed that issue this will be great! |
The problem still not solved :( What to do? |
Hi! |
I still have the same issue! Why you closed issues not resolved!? |
@mi-mazouz using your same words: You have not opened a new issue following the issue template! Why don't you open a new issue and supply us with the necessary information to help!? But more nicely, this issue was closed almost 2 years ago. So much has changed. And it requires lots of information about your environment to troubleshoot. Please open a new issue. |
Issue
This is for Android only.
Android notification heads up are never displayed (app killed or in background).
My notifications are directly displayed in the notification tray.
I tried by setting "priority" (normal & high) but nothing changed.
Here the format of my notifications:
I would like something like that:
Environment
Application Target Platform: Android
Development Operating System: macOS Sierra
React Native version: 0.48.4
RNFirebase Version: 3.0.3
The text was updated successfully, but these errors were encountered: