I want to set custom sound to notification in my application which using firebase notification.
In android worked perfectly, but in IOS not working. I put audio file in ios/runner, but notification received silently.
Push notifications are not working in iOS12, but were displaying normally on iOS11. Thanks!
I am sending push notifications using Flutter's firebase_messaging package and I send them in the firebase console. When the app is in the background or when it is closed, I am receiving the notifications, however, when the app is in the foreground it is not working. Please tell me if I need to integrate Javascript to make this feature work, and please reference a resource that I can use in order to figure out how I can integrate Javascript with fcm as I haven't found a way to do this with flutter.
I figured out that someone can use the flutter local notifications plugin so that when the push notification is sent and the app is on the foreground, normally no notification would be delivered to the system tray, but using the flutter local notifications plugin, it would be possible to send a local notification when the app is on the foreground.
To Understand better.
Have a look into this table.
https://pub.dev/packages/firebase_messaging#receiving-messages
It states that when your Android or iOS Application is in foreground, OnMessage callback is called if you are sending notification payload or data payload as notification body.
You are receiving notifications when your app is in background because, when an app is in background notification is send to system tray and OS (Android or iOS) handle it for you. And your app is launched when you click on notification from system tray.
When your app is in foreground you have to catch notification payload in onMessage and handle it explicitly, you can create local notification in this case.
I've installed and configured all the requirements of FCM on client and server(node-fcm) both and sending push notification successfully whenever I want in all devices, but when I'm sending to Android 8.0 device its coming within app when app is opened while not coming in background when app is closed. Kindly anyone who can help me in this or tell if FCM has updates for oreo or not, or this is a bug.
Thanks
I am sending Push Notifications on my iOS application from Firebase console and the notifications are delivered however the Notification section in Firebase does not show Open Rate(Mean how many notifications were open out of total sent ). Why is that happening ?
I think gcm is not related here, he said he is working with ios, not android. I am experiencing the same behaviour with my iOS app here!