Closed tomk9 closed 1 year ago
Thanks for the report. Keeping it open for further insights from the team.
/cc @russellwheatley
I closed this because it turns out that only data messages don't work. I opened a better described issue https://github.com/firebase/flutterfire/issues/9902
Bug report
firebase_messaging
and the message in theonMessage
callback completely changed. 11.2.10I don't know what the backend sends but the
scope
field in data is missed.Expected behavior
All data should be available in the
onMessage
callback.Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
``` Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.0.0, on macOS 12.4 21F79 darwin-arm, locale en-PL) [✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.4) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.2) [✓] IntelliJ IDEA Ultimate Edition (version 2022.1.1) [✓] VS Code (version 1.67.1) [✓] Connected device (4 available) [✓] HTTP Host Availability ```Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
``` Dart SDK 2.17.0 Flutter SDK 3.0.0 td_flutter 1.53.0+405 dependencies: - bloc 6.1.3 [meta] - cached_network_image 3.2.1 [flutter flutter_cache_manager octo_image cached_network_image_platform_interface cached_network_image_web] - chewie 1.1.0 [cupertino_icons flutter video_player wakelock] - collection 1.16.0 - connectivity 3.0.6 [flutter meta connectivity_platform_interface connectivity_macos connectivity_for_web] - cupertino_icons 1.0.4 - dotted_line 3.1.0 [flutter] - email_validator 2.0.1 - equatable 1.2.6 [collection meta] - file_picker 3.0.4 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface] - firebase_messaging 11.2.11 [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 sky_engine] - flutter_bloc 6.1.3 [flutter bloc provider] - flutter_braintree 1.1.0+1 [flutter meta] - flutter_calendar_carousel 1.5.3 [intl flutter] - flutter_html 2.0.0-nullsafety.0 [html csslib css_colors flutter_layout_grid video_player chewie webview_flutter chewie_audio flutter_svg flutter] - flutter_i18n 0.22.4 [flutter flutter_localizations flutter_web_plugins intl yaml xml2json path] - flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math] - flutter_masked_text 0.8.0 [flutter] - flutter_native_timezone 1.1.0 [flutter_web_plugins flutter js] - flutter_pdfview 1.2.2 [flutter] - flutter_secure_storage 3.3.5 [meta flutter] - flutter_speed_dial 6.0.0 [flutter] - flutter_svg 0.21.0+1 [flutter meta path_drawing vector_math xml] - flutter_typeahead 3.2.7 [flutter flutter_keyboard_visibility] - flutter_uploader 1.2.1 [flutter] - flutter_user_agent 1.2.2 [flutter] - font_awesome_flutter 10.1.0 [flutter] - html 0.15.0 [csslib source_span] - http 0.13.4 [async http_parser meta path] - intercom_flutter 7.2.0 [flutter flutter_web_plugins intercom_flutter_platform_interface intercom_flutter_web] - intl 0.17.0 [clock path] - jose 0.3.2 [crypto_keys meta typed_data x509 http http_parser asn1lib collection] - json_annotation 3.1.1 - local_auth 1.1.11 [flutter flutter_plugin_android_lifecycle intl platform] - merge_map 1.0.2 - meta 1.7.0 - mime 1.0.2 - oauth2 2.0.0 [collection crypto http http_parser] - open_file 3.2.1 [flutter ffi] - package_info 0.4.3+4 [flutter] - path 1.8.1 - path_provider 2.0.10 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows] - permission_handler 8.3.0 [flutter meta permission_handler_platform_interface] - rxdart 0.26.0 - sentry_flutter 6.5.1 [flutter flutter_web_plugins sentry package_info_plus meta] - share 2.0.4 [meta mime flutter] - stream_transform 2.0.0 - uni_links 0.4.0 [flutter] - url_launcher 6.1.2 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] - uuid 3.0.6 [crypto] - video_player 2.4.2 [flutter html video_player_android video_player_avfoundation video_player_platform_interface video_player_web] - vimeo_player_flutter 0.0.3+1 [flutter webview_flutter] - webview_flutter 2.8.0 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview] - youtube_player_iframe 2.3.0 [flutter flutter_inappwebview url_launcher] dev dependencies: - build_runner 1.11.5 [args async build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style glob graphs http_multi_server io js logging meta mime path pedantic pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web_socket_channel yaml] - flutter_launcher_icons 0.9.2 [args image path yaml] - flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph] - json_serializable 3.5.2 [analyzer build build_config json_annotation meta path source_gen] - lint 1.8.2 dependency overrides: - analyzer 1.7.2 [_fe_analyzer_shared cli_util collection convert crypto glob meta package_config path pub_semver source_span watcher yaml pedantic] - platform 3.1.0 transitive dependencies: - _fe_analyzer_shared 22.0.0 [meta] - archive 3.3.0 [crypto path] - args 2.3.1 - asn1lib 1.1.0 - async 2.8.2 [collection meta] - boolean_selector 2.1.0 [source_span string_scanner] - build 1.6.3 [analyzer async convert crypto glob logging meta path] - build_config 0.4.6 [checked_yaml json_annotation meta path pubspec_parse yaml] - build_daemon 2.1.10 [built_collection built_value http_multi_server logging pedantic path pool shelf shelf_web_socket stream_transform watcher web_socket_channel] - build_resolvers 1.5.4 [analyzer build crypto graphs logging meta path package_config pool pub_semver] - build_runner_core 6.1.10 [async build build_config build_resolvers collection convert crypto glob graphs logging meta path package_config pedantic pool timing watcher yaml] - built_collection 5.1.1 - built_value 8.3.0 [built_collection collection fixnum meta] - cached_network_image_platform_interface 1.0.0 [flutter flutter_cache_manager] - cached_network_image_web 1.0.1 [flutter flutter_cache_manager cached_network_image_platform_interface] - characters 1.2.0 - charcode 1.3.1 - checked_yaml 1.0.4 [json_annotation source_span yaml] - chewie_audio 1.3.0 [cupertino_icons flutter video_player] - cli_util 0.3.5 [meta path] - clock 1.1.0 - code_builder 3.7.0 [built_collection built_value collection matcher meta] - connectivity_for_web 0.4.0+1 [connectivity_platform_interface flutter_web_plugins flutter] - connectivity_macos 0.2.1+2 [flutter connectivity_platform_interface] - connectivity_platform_interface 2.0.1 [flutter meta plugin_platform_interface] - convert 3.0.1 [typed_data] - crypto 3.0.2 [typed_data] - crypto_keys 0.3.0 [pointycastle meta collection quiver] - css_colors 1.1.1 [flutter] - csslib 0.17.1 [source_span] - dart_style 1.3.14 [analyzer args path pub_semver source_span] - fake_async 1.3.0 [clock collection] - ffi 1.2.1 - file 6.1.2 [meta path] - firebase_core 1.17.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_core_platform_interface 4.4.0 [collection flutter meta plugin_platform_interface] - firebase_core_web 1.6.4 [firebase_core_platform_interface flutter flutter_web_plugins js meta] - firebase_messaging_platform_interface 3.5.0 [firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 2.4.0 [firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta] - fixnum 1.0.1 - flutter_blurhash 0.7.0 [flutter] - flutter_cache_manager 3.3.0 [clock collection file flutter http path path_provider pedantic rxdart sqflite uuid] - flutter_inappwebview 5.4.3+7 [flutter] - flutter_keyboard_visibility 5.2.0 [meta flutter_keyboard_visibility_platform_interface flutter_keyboard_visibility_web flutter] - flutter_keyboard_visibility_platform_interface 2.0.0 [flutter meta plugin_platform_interface] - flutter_keyboard_visibility_web 2.0.0 [flutter_keyboard_visibility_platform_interface flutter_web_plugins flutter] - flutter_layout_grid 1.0.6 [flutter collection meta quiver] - flutter_plugin_android_lifecycle 2.0.6 [flutter] - flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math] - glob 2.0.2 [async collection file path string_scanner] - graphs 0.2.0 - http_multi_server 2.2.0 [async] - http_parser 4.0.1 [collection source_span string_scanner typed_data] - image 3.1.3 [archive meta xml] - intercom_flutter_platform_interface 1.2.0 [flutter plugin_platform_interface] - intercom_flutter_web 0.2.0 [flutter flutter_web_plugins intercom_flutter_platform_interface uuid] - io 0.3.5 [meta path string_scanner] - js 0.6.4 - logging 1.0.2 - matcher 0.12.11 [stack_trace] - material_color_utilities 0.1.4 - nested 1.0.0 [flutter] - octo_image 1.0.2 [flutter flutter_blurhash] - package_config 2.0.2 [path] - package_info_plus 1.4.2 [flutter package_info_plus_platform_interface package_info_plus_linux package_info_plus_macos package_info_plus_windows package_info_plus_web] - package_info_plus_linux 1.0.5 [package_info_plus_platform_interface flutter path] - package_info_plus_macos 1.3.0 [flutter] - package_info_plus_platform_interface 1.0.2 [flutter meta plugin_platform_interface] - package_info_plus_web 1.0.5 [flutter flutter_web_plugins http meta package_info_plus_platform_interface] - package_info_plus_windows 1.0.5 [package_info_plus_platform_interface ffi flutter win32] - path_drawing 0.5.1+1 [vector_math meta path_parsing flutter] - path_parsing 0.2.1 [vector_math meta] - path_provider_android 2.0.14 [flutter path_provider_platform_interface] - path_provider_ios 2.0.9 [flutter path_provider_platform_interface] - path_provider_linux 2.1.6 [ffi flutter path path_provider_platform_interface xdg_directories] - path_provider_macos 2.0.6 [flutter path_provider_platform_interface] - path_provider_platform_interface 2.0.4 [flutter platform plugin_platform_interface] - path_provider_windows 2.0.6 [ffi flutter path path_provider_platform_interface win32] - pedantic 1.11.1 - permission_handler_platform_interface 3.7.0 [flutter meta plugin_platform_interface] - petitparser 5.0.0 [meta] - plugin_platform_interface 2.1.2 [meta] - pointycastle 3.6.0 [collection convert js] - pool 1.5.0 [async stack_trace] - process 4.2.4 [file path platform] - provider 4.3.3 [collection flutter nested] - pub_semver 2.1.1 [collection meta] - pubspec_parse 0.1.8 [checked_yaml json_annotation pub_semver yaml] - quiver 3.1.0 [matcher] - sentry 6.5.1 [http meta stack_trace uuid] - shelf 1.3.0 [async collection http_parser path stack_trace stream_channel] - shelf_web_socket 0.2.4+1 [shelf stream_channel web_socket_channel] - sky_engine 0.0.99 - source_gen 0.9.10+3 [analyzer async build dart_style glob meta path pedantic source_span] - source_span 1.8.2 [collection path term_glyph] - sqflite 2.0.2+1 [flutter sqflite_common path] - sqflite_common 2.2.1+1 [synchronized path meta] - stack_trace 1.10.0 [path] - stream_channel 2.1.0 [async] - string_scanner 1.1.0 [charcode source_span] - synchronized 3.0.0+2 - term_glyph 1.2.0 - test_api 0.4.9 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher] - timing 0.1.1+3 [json_annotation] - typed_data 1.3.1 [collection] - url_launcher_android 6.0.17 [flutter url_launcher_platform_interface] - url_launcher_ios 6.0.16 [flutter url_launcher_platform_interface] - url_launcher_linux 3.0.1 [flutter url_launcher_platform_interface] - url_launcher_macos 3.0.1 [flutter url_launcher_platform_interface] - url_launcher_platform_interface 2.0.5 [flutter plugin_platform_interface] - url_launcher_web 2.0.11 [flutter flutter_web_plugins url_launcher_platform_interface] - url_launcher_windows 3.0.1 [flutter url_launcher_platform_interface] - vector_math 2.1.2 - video_player_android 2.3.4 [flutter video_player_platform_interface] - video_player_avfoundation 2.3.4 [flutter video_player_platform_interface] - video_player_platform_interface 5.1.2 [flutter plugin_platform_interface] - video_player_web 2.0.10 [flutter flutter_web_plugins video_player_platform_interface] - wakelock 0.5.6 [flutter meta wakelock_macos wakelock_platform_interface wakelock_web wakelock_windows] - wakelock_macos 0.4.0 [flutter flutter_web_plugins wakelock_platform_interface] - wakelock_platform_interface 0.3.0 [flutter meta] - wakelock_web 0.4.0 [flutter flutter_web_plugins js wakelock_platform_interface] - wakelock_windows 0.2.0 [flutter wakelock_platform_interface win32] - watcher 1.0.1 [async path] - web_socket_channel 1.2.0 [async crypto stream_channel] - webview_flutter_android 2.8.8 [flutter webview_flutter_platform_interface] - webview_flutter_platform_interface 1.9.0 [flutter meta plugin_platform_interface] - webview_flutter_wkwebview 2.7.5 [flutter path webview_flutter_platform_interface] - win32 2.6.1 [ffi] - x509 0.2.2 [asn1lib quiver crypto_keys] - xdg_directories 0.2.0+1 [meta path process] - xml 5.4.1 [collection meta petitparser] - xml2json 5.3.2 [xml] - yaml 3.1.1 [collection source_span string_scanner] ```