π [firebase_messaging] onBackgroundMessage triggered when notification is dismissed
Bug report
With the latest versions of firebase_messaging and the linked dependencies, whenever a notification is dismissed by swiping it, the onBackgroundMessage callback is triggered.
Doesn't happen with this configuration :
firebase_core: 2.17.0
firebase_messaging: 14.6.9
flutter_local_notifications: 14.1.1
firebase_analytics: 10.5.0
firebase_crashlytics: 3.3.5
Happens with this configuration :
firebase_core: 2.23.0
firebase_messaging: 14.7.5
flutter_local_notifications: 16.1.0
firebase_analytics: 10.6.4
firebase_crashlytics: 3.4.4
I wasn't able to find out which component or which version of firebase_messaging was creating this issue
Steps to reproduce
Steps to reproduce the behavior:
- Set the latest version of every library listed above
- Register the background callback
FirebaseMessaging.onBackgroundMessage(firebaseMessagingBackgroundHandler);
@pragma('vm:entry-point')
Future<void> firebaseMessagingBackgroundHandler(RemoteMessage message) async {
//When the sent message is a notification, we shouldn't intercept it
if (message.notification != null) {
return;
}
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
debugPrintTime('Notif received');
debugPrintTime('${message.notification}');
final flutterLocalNotificationsPlugin = FlutterLocalNotificationsPlugin();
const notificationDetails = NotificationDetails(
android: androidNotificationDetails,
);
await flutterLocalNotificationsPlugin.show(
0,
message.data['title'] as String? ?? '',
message.data['body'] as String? ?? '',
notificationDetails,
payload: '',
);
}
- Trigger a notification (in my case, from the API) and swipe it on the device
Expected behavior
The background callback shouldn't be triggered when dismissing the notification, as it used to be working.
Flutter doctor
Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel [user-branch], 3.16.5, on macOS 12.5 21G72 darwin-arm64 (Rosetta), locale fr-FR)
! Flutter version 3.16.5 on channel [user-branch] at /Users/fduhen/fvm/versions/3.16.5
Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
! Upstream repository unknown source is not a standard remote.
Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
[β] Android toolchain - develop for Android devices (Android SDK version 33.0.1)
[β] Xcode - develop for iOS and macOS (Xcode 14.2)
[β] Chrome - develop for the web
[β] Android Studio (version 2022.3)
[β] IntelliJ IDEA Ultimate Edition (version 2022.2.1)
[β] VS Code (version 1.58.2)
[β] Connected device (3 available)
[β] Network resources
Flutter dependencies
Click To Expand
Dart SDK 3.2.3
Flutter SDK 3.16.5
ahsprovider 1.6.1+71
dependencies:
- android_id 0.3.6 [flutter]
- app_settings 5.1.1 [flutter plugin_platform_interface]
- cached_network_image 3.3.0 [cached_network_image_platform_interface cached_network_image_web flutter flutter_cache_manager octo_image]
- calendar_date_picker2 0.5.3 [flutter]
- connectivity_plus 5.0.1 [flutter flutter_web_plugins connectivity_plus_platform_interface js meta nm]
- cupertino_icons 1.0.6
- datadog_flutter_plugin 2.0.0 [flutter flutter_web_plugins js plugin_platform_interface json_annotation uuid meta]
- datadog_tracking_http_client 2.0.0 [flutter datadog_flutter_plugin uuid http]
- device_info_plus 9.1.0 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta win32 win32_registry]
- device_preview 1.1.0 [flutter flutter_localizations provider device_frame freezed_annotation json_annotation shared_preferences collection]
- dio 5.3.3 [async http_parser meta path]
- dio_cache_interceptor 3.4.4 [dio uuid string_scanner]
- dio_cache_interceptor_hive_store 3.2.1 [dio_cache_interceptor hive]
- enum_to_string 2.0.1
- envied 0.5.1
- expandable 5.0.1 [flutter]
- expandable_page_view 1.0.17 [flutter]
- file_picker 6.1.1 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32]
- firebase_analytics 10.5.0 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter]
- firebase_core 2.17.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_crashlytics 3.3.5 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
- firebase_messaging 14.6.9 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math web sky_engine]
- flutter_hooks 0.18.6 [flutter]
- flutter_html 3.0.0-beta.2 [html csslib collection list_counter flutter]
- flutter_image_compress 2.1.0 [flutter flutter_image_compress_platform_interface flutter_image_compress_common flutter_image_compress_web flutter_image_compress_macos]
- flutter_launcher_icons 0.13.1 [args checked_yaml cli_util image json_annotation path yaml]
- flutter_local_notifications 14.1.1 [clock flutter flutter_local_notifications_linux flutter_local_notifications_platform_interface timezone]
- flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math web]
- flutter_mozaic 2.4.0 [flutter intl table_calendar websafe_svg]
- flutter_native_splash 2.3.2 [args flutter flutter_web_plugins js html image meta path universal_io xml yaml]
- flutter_pdfview 1.3.2 [flutter]
- flutter_rating_bar 4.0.1 [flutter]
- flutter_riverpod 2.3.10 [collection flutter meta riverpod state_notifier]
- flutter_secure_storage 9.0.0 [flutter flutter_secure_storage_linux flutter_secure_storage_macos flutter_secure_storage_platform_interface flutter_secure_storage_web flutter_secure_storage_windows meta]
- flutter_svg 2.0.7 [flutter vector_graphics vector_graphics_codec vector_graphics_compiler]
- flutter_timezone 1.0.8 [flutter_web_plugins flutter js]
- freezed_annotation 2.4.1 [collection json_annotation meta]
- geocoding 2.1.1 [flutter geocoding_platform_interface geocoding_android geocoding_ios]
- go_router 6.5.1 [collection flutter flutter_web_plugins logging meta]
- hooks_riverpod 2.3.10 [collection flutter flutter_hooks flutter_riverpod riverpod state_notifier]
- http 1.1.0 [async http_parser meta]
- image_picker 1.0.4 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_linux image_picker_macos image_picker_platform_interface image_picker_windows]
- internet_connection_checker 1.0.0+1
- intl 0.17.0 [clock path]
- json_annotation 4.8.1 [meta]
- json_serializable 6.7.1 [analyzer async build build_config collection json_annotation meta path pub_semver pubspec_parse source_gen source_helper]
- jwt_decoder 2.0.1
- launch_review 3.0.1 [flutter]
- local_auth 2.1.7 [flutter local_auth_android local_auth_ios local_auth_platform_interface local_auth_windows]
- lottie 2.7.0 [archive flutter path vector_math]
- map_launcher 3.0.1 [flutter]
- material_color_utilities 0.2.0
- objectbox 2.3.1 [collection flat_buffers ffi meta path]
- objectbox_flutter_libs 2.3.1 [flutter objectbox path_provider]
- open_file_plus 3.4.1 [flutter ffi]
- package_info_plus 4.2.0 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface win32]
- path_provider 2.1.1 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows]
- phrase 2.2.0 [flutter intl yaml shared_preferences path path_provider crypto uuid http package_info_plus synchronized glob build]
- reachfive_auth 2.0.0 [flutter flutter_web_plugins plugin_platform_interface flutter_secure_storage http]
- retrofit 4.0.3 [dio meta]
- riverpod 2.3.10 [meta stack_trace state_notifier]
- shared_preferences 2.2.2 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]
- skeletons 0.0.3 [flutter]
- smooth_page_indicator 1.1.0 [flutter]
- url_launcher 6.2.1 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- uuid 4.2.1 [crypto sprintf meta]
dev dependencies:
- build_runner 2.4.6 [analyzer args async build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml]
- envied_generator 0.5.1 [envied build code_builder dart_style source_gen analyzer]
- flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math async boolean_selector characters collection material_color_utilities meta source_span stream_channel string_scanner term_glyph web]
- freezed 2.4.5 [analyzer build build_config collection meta source_gen freezed_annotation json_annotation]
- mockito 5.4.3 [analyzer build code_builder collection dart_style matcher meta path source_gen test_api]
- objectbox_generator 2.3.1 [objectbox analyzer build collection dart_style glob path source_gen pubspec_parse yaml http cryptography]
- retrofit_generator 8.0.4 [analyzer build built_collection code_builder dart_style dio retrofit source_gen tuple protobuf]
dependency overrides:
- flutter_lints 1.0.4 [lints]
- gap 3.0.1 [flutter]
- http 1.1.0 [async http_parser meta]
- intl 0.17.0 [clock path]
- local_auth_android 1.0.28 [flutter flutter_plugin_android_lifecycle intl local_auth_platform_interface]
- material_color_utilities 0.2.0
- mockito 5.4.3 [analyzer build code_builder collection dart_style matcher meta path source_gen test_api]
- package_info_plus 4.2.0 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface win32]
transitive dependencies:
- _fe_analyzer_shared 61.0.0 [meta]
- _flutterfire_internals 1.3.7 [collection firebase_core firebase_core_platform_interface flutter meta]
- analyzer 5.13.0 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
- archive 3.4.9 [crypto path pointycastle]
- args 2.4.2
- async 2.11.0 [collection meta]
- boolean_selector 2.1.1 [source_span string_scanner]
- build 2.4.1 [analyzer async convert crypto glob logging meta package_config path]
- build_config 1.1.1 [checked_yaml json_annotation path pubspec_parse yaml]
- build_daemon 4.0.1 [built_collection built_value crypto http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
- build_resolvers 2.4.1 [analyzer async build collection convert crypto graphs logging package_config path pool pub_semver stream_transform yaml]
- build_runner_core 7.2.11 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta package_config path pool timing watcher yaml]
- built_collection 5.1.1
- built_value 8.8.0 [built_collection collection fixnum meta]
- cached_network_image_platform_interface 3.0.0 [flutter flutter_cache_manager]
- cached_network_image_web 1.1.0 [cached_network_image_platform_interface flutter flutter_cache_manager]
- characters 1.3.0
- checked_yaml 2.0.3 [json_annotation source_span yaml]
- cli_util 0.4.0 [meta path]
- clock 1.1.1
- code_builder 4.8.0 [built_collection built_value collection matcher meta]
- collection 1.18.0
- connectivity_plus_platform_interface 1.2.4 [flutter meta plugin_platform_interface]
- convert 3.1.1 [typed_data]
- cross_file 0.3.3+7 [js meta]
- crypto 3.0.3 [typed_data]
- cryptography 2.7.0 [collection crypto ffi js meta typed_data]
- csslib 0.17.3 [source_span]
- dart_style 2.3.2 [analyzer args path pub_semver source_span]
- dbus 0.7.10 [args ffi meta xml]
- device_frame 1.1.0 [freezed_annotation flutter]
- device_info_plus_platform_interface 7.0.0 [flutter meta plugin_platform_interface]
- fake_async 1.3.1 [clock collection]
- ffi 2.1.0
- file 7.0.0 [meta path]
- file_selector_linux 0.9.2+1 [cross_file file_selector_platform_interface flutter]
- file_selector_macos 0.9.3+3 [cross_file file_selector_platform_interface flutter]
- file_selector_platform_interface 2.6.1 [cross_file flutter http plugin_platform_interface]
- file_selector_windows 0.9.3+1 [cross_file file_selector_platform_interface flutter]
- firebase_analytics_platform_interface 3.7.1 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_analytics_web 0.5.5+1 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
- firebase_core_platform_interface 4.8.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.8.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
- firebase_crashlytics_platform_interface 3.6.7 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_platform_interface 4.5.8 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 3.5.8 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta]
- fixnum 1.1.0
- flat_buffers 2.0.5
- flutter_cache_manager 3.3.1 [clock collection file flutter http path path_provider rxdart sqflite uuid]
- flutter_image_compress_common 1.0.3 [flutter flutter_image_compress_platform_interface]
- flutter_image_compress_macos 1.0.1 [flutter flutter_image_compress_platform_interface]
- flutter_image_compress_platform_interface 1.0.3 [flutter plugin_platform_interface cross_file]
- flutter_image_compress_web 0.1.3+2 [flutter flutter_web_plugins flutter_image_compress_platform_interface js]
- flutter_local_notifications_linux 4.0.0+1 [dbus ffi flutter flutter_local_notifications_platform_interface path xdg_directories]
- flutter_local_notifications_platform_interface 7.0.0+1 [flutter plugin_platform_interface]
- flutter_plugin_android_lifecycle 2.0.17 [flutter]
- flutter_secure_storage_linux 1.2.0 [flutter flutter_secure_storage_platform_interface]
- flutter_secure_storage_macos 3.0.1 [flutter flutter_secure_storage_platform_interface]
- flutter_secure_storage_platform_interface 1.0.2 [flutter plugin_platform_interface]
- flutter_secure_storage_web 1.1.2 [flutter flutter_secure_storage_platform_interface flutter_web_plugins js]
- flutter_secure_storage_windows 3.0.0 [ffi flutter flutter_secure_storage_platform_interface path path_provider win32]
- flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math web]
- frontend_server_client 3.2.0 [async path]
- geocoding_android 2.1.2 [flutter geocoding_platform_interface]
- geocoding_ios 2.1.1 [flutter geocoding_platform_interface]
- geocoding_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- glob 2.1.2 [async collection file path string_scanner]
- graphs 2.3.1 [collection]
- hive 2.2.3 [meta crypto]
- html 0.15.4 [csslib source_span]
- http_multi_server 3.2.1 [async]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- image 4.1.3 [archive meta xml]
- image_picker_android 0.8.8+2 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface]
- image_picker_for_web 2.2.0 [flutter flutter_web_plugins image_picker_platform_interface mime]
- image_picker_ios 0.8.8+4 [flutter image_picker_platform_interface]
- image_picker_linux 0.2.1+1 [file_selector_linux file_selector_platform_interface flutter image_picker_platform_interface]
- image_picker_macos 0.2.1+1 [file_selector_macos file_selector_platform_interface flutter image_picker_platform_interface]
- image_picker_platform_interface 2.9.1 [cross_file flutter http plugin_platform_interface]
- image_picker_windows 0.2.1+1 [file_selector_platform_interface file_selector_windows flutter image_picker_platform_interface]
- io 1.0.4 [meta path string_scanner]
- js 0.6.7 [meta]
- lints 1.0.1
- list_counter 1.0.2
- local_auth_ios 1.1.5 [flutter intl local_auth_platform_interface]
- local_auth_platform_interface 1.0.8 [flutter plugin_platform_interface]
- local_auth_windows 1.0.10 [flutter local_auth_platform_interface]
- logging 1.2.0
- matcher 0.12.16 [async meta stack_trace term_glyph test_api]
- meta 1.10.0
- mime 1.0.4
- nested 1.0.0 [flutter]
- nm 0.5.0 [dbus]
- octo_image 2.0.0 [flutter]
- package_config 2.1.0 [path]
- package_info_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- path 1.8.3
- path_parsing 1.0.1 [vector_math meta]
- path_provider_android 2.2.1 [flutter path_provider_platform_interface]
- path_provider_foundation 2.3.1 [flutter path_provider_platform_interface]
- path_provider_linux 2.2.1 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_platform_interface 2.1.1 [flutter platform plugin_platform_interface]
- path_provider_windows 2.2.1 [ffi flutter path path_provider_platform_interface win32]
- petitparser 5.4.0 [meta]
- platform 3.1.3
- plugin_platform_interface 2.1.7 [meta]
- pointycastle 3.7.3 [collection convert js]
- pool 1.5.1 [async stack_trace]
- protobuf 3.1.0 [collection fixnum meta]
- provider 6.1.1 [collection flutter nested]
- pub_semver 2.1.4 [collection meta]
- pubspec_parse 1.2.3 [checked_yaml collection json_annotation pub_semver yaml]
- rxdart 0.27.7
- shared_preferences_android 2.2.1 [flutter shared_preferences_platform_interface]
- shared_preferences_foundation 2.3.4 [flutter shared_preferences_platform_interface]
- shared_preferences_linux 2.3.2 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.3.1 [flutter plugin_platform_interface]
- shared_preferences_web 2.2.1 [flutter flutter_web_plugins shared_preferences_platform_interface]
- shared_preferences_windows 2.3.2 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- shelf 1.4.1 [async collection http_parser path stack_trace stream_channel]
- shelf_web_socket 1.0.4 [shelf stream_channel web_socket_channel]
- simple_gesture_detector 0.2.0 [flutter]
- sky_engine 0.0.99
- source_gen 1.4.0 [analyzer async build dart_style glob path source_span yaml]
- source_helper 1.3.4 [analyzer collection source_gen]
- source_span 1.10.0 [collection path term_glyph]
- sprintf 7.0.0
- sqflite 2.3.0 [flutter sqflite_common path]
- sqflite_common 2.5.0+2 [synchronized path meta]
- stack_trace 1.11.1 [path]
- state_notifier 1.0.0 [meta]
- stream_channel 2.1.2 [async]
- stream_transform 2.1.0
- string_scanner 1.2.0 [source_span]
- synchronized 3.1.0
- table_calendar 3.0.9 [flutter intl simple_gesture_detector]
- term_glyph 1.2.1
- test_api 0.6.1 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- timezone 0.9.2 [path]
- timing 1.0.1 [json_annotation]
- tuple 2.0.2
- typed_data 1.3.2 [collection]
- universal_io 2.2.2 [collection meta typed_data]
- url_launcher_android 6.2.0 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.2.1 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.1.0 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.1.0 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.2.0 [flutter plugin_platform_interface]
- url_launcher_web 2.2.0 [flutter flutter_web_plugins url_launcher_platform_interface]
- url_launcher_windows 3.1.0 [flutter url_launcher_platform_interface]
- vector_graphics 1.1.9+1 [flutter vector_graphics_codec]
- vector_graphics_codec 1.1.9+1
- vector_graphics_compiler 1.1.9+1 [args meta path_parsing xml vector_graphics_codec path]
- vector_math 2.1.4
- watcher 1.1.0 [async path]
- web 0.3.0
- web_socket_channel 2.4.0 [async crypto stream_channel]
- websafe_svg 3.0.1+1 [convert flutter flutter_svg http logging meta]
- win32 5.1.0 [ffi]
- win32_registry 1.1.2 [ffi win32]
- xdg_directories 1.0.3 [meta path]
- xml 6.3.0 [collection meta petitparser]
- yaml 3.1.2 [collection source_span string_scanner]
Hi @FDuhen, what platform(s) (android/ios) are you experiencing this issue on?
Can you try using the latest versions of the plugins, specifically, firebase_messaging to see if you still experience this issue?
Hello I only tried it on Android. I still have this issue with the latest versions
firebase_core: ^2.25.4
firebase_messaging: ^14.7.15
I can reproduce it with a simple setup :
void main() async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options: DefaultFirebaseOptions.currentPlatform,
);
FirebaseMessaging.onBackgroundMessage(firebaseMessagingBackgroundHandler);
runApp(const MyApp());
}
// Listening incoming notification when the app is inactive or killed (background)
@pragma('vm:entry-point')
Future<void> firebaseMessagingBackgroundHandler(RemoteMessage message) async {
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp();
debugPrint("Handling a background message: ${message.messageId}");
}
When receiving a Notification from the Firebase console, the displayed log is
I/flutter (15625): Handling a background message: 0:1707925574894322%a56eef72a56eef72
And when I swipe this notification, the displayed log is
I/flutter (15625): Handling a background message: null
Hi @FDuhen, what device(s) are you seeing this on? When I test on my Pixel 7, the message comes in when the app is in the background but when I swipe the notification away, I don't see any other handling message. I am using the plugin example app.
I reproduced it on an emulator (Pixel 4 API 33) and on a Samsung S20, and on my Oppo Find X3 (Android 13). Edit : here is the source code I used to reproduce this behavior. I removed the google-services.json and the config in the firebase_options.dart before pushing it https://github.com/FDuhen/temp-bugreport-notifs--flutter
Hi @FDuhen, what service are you using to send the notifications? Can you try using the nodejs admin sdk and the plugin example app to see if you still experience the issue?
I've reproduced this behavior by using the Firebase console.
My project > Messaging > New Campaign > Notification > Send test message
And then I paste my device token generated on the test app in the project linked above.
But I also had it on my "real" project environment, where notifications are sent from a backend developed with Kotlin.
ext.versions = [
firebaseAdminSdk : '9.1.1',
]
implementation "com.google.firebase:firebase-admin:${versions.firebaseAdminSdk}"
I can't seem to reproduce the issue with the plugin example app on my device (Pixel 7 running android 14).
Labeling this for further investigation
cc @russellwheatley
We're facing exactly the same issue here.
version: "14.7.16"
exactly the same issue. firebase_messaging: ^14.7.5
Also experiencing this. firebase_messaging 14.8.2
The background message handler will fire with/without notification in the message, or if you have swiped/not swiped notification. It is completely agnostic to notification interaction. This is working as intended.
The background message handler will fire with/without notification in the message, or if you have swiped/not swiped notification. It is completely agnostic to notification interaction. This is working as intended.
I think the issue was misunderstood.
The issue some other users and I are reporting, is that the callback
FirebaseMessaging.onBackgroundMessage(firebaseMessagingBackgroundHandler);
is triggered once when receiving the notification, and once again when dismissing the notification. The second trigger is the behavior which seems bugged.
Here is a video to help you understand what we mean https://www.youtube.com/watch?v=aCveU6nuZxA