Relative Content

Tag Archive for androidiosflutterfirebase-cloud-messaging

Only-data messages being collapsed and dropped in iOS

I want to send multiple data messages to my flutter app. I was working with notifications as they were sent in all states (foreground, background, terminated) but found that they are being collapsed. I switched to use only-data messages and after some code modification, it works flawlessly on Android when the app is in any condition, I always receive the data message. Even if the user has no internet connection and multiple messages are sent, each one will be received after reconnecting. When testing this on iOS, I ran the app in release mode as I did in Android and everything worked in foreground, when I tried to swipe to home and send app to background and send a message, nothing is received. When I reopen the app, the data message is then received. If I send multiple data messages, only the last one is received after reopening the app.

Only-data messages being collapsed and dropped in iOS

I want to send multiple data messages to my flutter app. I was working with notifications as they were sent in all states (foreground, background, terminated) but found that they are being collapsed. I switched to use only-data messages and after some code modification, it works flawlessly on Android when the app is in any condition, I always receive the data message. Even if the user has no internet connection and multiple messages are sent, each one will be received after reconnecting. When testing this on iOS, I ran the app in release mode as I did in Android and everything worked in foreground, when I tried to swipe to home and send app to background and send a message, nothing is received. When I reopen the app, the data message is then received. If I send multiple data messages, only the last one is received after reopening the app.