firebase / flutterfire

🔥 A collection of Firebase plugins for Flutter apps.
https://firebase.google.com/docs/flutter/setup
BSD 3-Clause "New" or "Revised" License
8.72k stars 3.97k forks source link

🐛 [firebase_messaging] Breaking Method Channel for nearby_connections plugin #7121

Closed alphamanorg closed 3 years ago

alphamanorg commented 3 years ago

Bug report

Describe the bug When I build my app with firebase_messaging included it breaks the method channel for the nearby_connections plugin. Android platform code from that plugin can not invoke dart code. It works fine when I remove firebase_messaging.

Steps to reproduce

Steps to reproduce the behavior:

Just include firebase_messaging

Expected behavior

It should not break the functionality of other plugins

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, 2.5.2, on Microsoft Windows [Version 10.0.22468.1000], locale en-IN) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.3) [√] Chrome - develop for the web [√] Android Studio (version 2020.3) [√] IntelliJ IDEA Ultimate Edition (version 2020.3) [√] VS Code (version 1.60.1) [√] Connected device (2 available) • No issues found!

Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand Dart SDK 2.14.3 Flutter SDK 2.5.2 App 1.0.0+1 dependencies: - animated_text_kit 4.2.1 [flutter characters] - auto_route 2.4.2 [flutter path collection] - bot_toast 4.0.1 [flutter] - cached_network_image 3.1.0 [flutter flutter_cache_manager octo_image cached_network_image_platform_interface cached_network_image_web] - cached_video_player 2.0.0-dev.1 [meta video_player_platform_interface video_player_web flutter flutter_test] - carousel_pro 1.0.0 [flutter] - carousel_slider 4.0.0 [flutter] - clipboard 0.1.3 [flutter] - cloud_firestore 2.5.3 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta] - cloud_firestore_web 2.4.3 [cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js] - confetti 0.6.0 [flutter vector_math] - country_code_picker 2.0.2 [flutter modal_bottom_sheet collection universal_platform] - dartz 0.10.0 - data_connection_checker 0.3.4 - dio 4.0.0 [http_parser path] - dio_http2_adapter 2.0.0 [http2 dio] - firebase_analytics 8.3.3 [firebase_analytics_platform_interface firebase_analytics_web firebase_core flutter meta] - firebase_auth 3.1.2 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta] - firebase_auth_web 3.1.1 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta] - firebase_core 1.7.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_crashlytics 2.2.2 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace] - firebase_dynamic_links 2.0.10 [firebase_core flutter] - firebase_in_app_messaging 0.5.0+10 [firebase_core flutter meta] - firebase_messaging 10.0.8 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta] - firebase_performance 0.7.1+1 [firebase_core firebase_core_platform_interface firebase_performance_platform_interface firebase_performance_web flutter] - firebase_remote_config 0.11.0+1 [firebase_core firebase_core_platform_interface firebase_remote_config_platform_interface flutter] - firebase_storage 10.0.4 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter] - firebase_storage_web 3.0.3 [async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http js meta] - fl_chart 0.40.0 [flutter equatable pedantic] - flushbar 1.10.4 [flutter] - flutter 0.0.0 [characters collection meta typed_data vector_math sky_engine] - flutter_bloc 7.3.0 [flutter bloc provider] - flutter_datetime_picker 1.5.1 [flutter] - flutter_launcher_icons 0.9.2 [args image path yaml] - flutter_login_facebook 1.1.0 [flutter list_ext] - flutter_phoenix 1.0.0 [flutter] - flutter_shimmer 2.1.2 [flutter] - flutter_svg 0.22.0 [flutter meta path_drawing vector_math xml] - freezed_annotation 0.14.3 [collection json_annotation meta] - gallery_saver 2.2.0 [flutter path_provider http path] - geocoding 2.0.1 [flutter geocoding_platform_interface] - get_it 7.2.0 [async collection] - google_mobile_ads 0.13.5 [meta flutter] - google_nearby_connections 0.0.1 [flutter] - google_sign_in 5.1.1 [flutter google_sign_in_platform_interface google_sign_in_web meta] - hive 2.0.4 [meta crypto] - hive_flutter 1.1.0 [flutter hive path_provider path] - http 0.13.3 [async http_parser meta path pedantic] - humanize 0.3.0 [flutter] - humanizer 0.0.2 [collection decimal intl meta] - image_cropper 1.4.1 [flutter] - image_picker 0.8.4+2 [flutter flutter_plugin_android_lifecycle image_picker_for_web image_picker_platform_interface] - injectable 1.5.0 [get_it] - intl 0.17.0 [clock path] - jiffy 4.1.0 [intl] - json_annotation 4.1.0 [meta] - json_serializable 5.0.2 [analyzer build build_config collection json_annotation meta path source_gen source_helper] - kt_dart 0.9.1 [meta] - location 4.3.0 [flutter location_platform_interface location_web] - logger 1.1.0 - lottie 1.2.1 [archive characters flutter path vector_math] - material_floating_search_bar 0.3.4 [flutter meta] - meta 1.7.0 - native_admob_flutter 1.5.0 [flutter] - numeral 1.2.5 - octo_image 1.0.0+1 [flutter flutter_blurhash] - package_info_plus 1.2.0 [flutter package_info_plus_platform_interface package_info_plus_linux package_info_plus_macos package_info_plus_windows package_info_plus_web] - paytm_allinonesdk 1.1.3 [flutter] - permission_handler 8.1.6 [flutter meta permission_handler_platform_interface] - pin_code_fields 7.3.0 [flutter] - pretty_dio_logger 1.2.0-beta-1 [dio] - pretty_qr_code 2.0.2 [flutter qr] - pull_to_refresh 2.0.0 [flutter] - razorpay_flutter 1.2.7 [flutter eventify] - rxdart 0.27.2 - screenshot 1.2.3 [flutter] - shimmer 2.0.0 [flutter] - simple_animations 4.0.0 [flutter flutter_lints collection] - socket_io_client 2.0.0-beta.4-nullsafety.0 [logging socket_io_common js] - sticky_headers 0.2.0 [flutter] - syncfusion_flutter_datepicker 19.3.43 [flutter intl syncfusion_flutter_core] - time 2.0.0 - timeago 3.1.0 - uni_links 0.5.1 [flutter uni_links_platform_interface uni_links_web] - url_launcher 6.0.12 [flutter meta url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows] - uuid 3.0.4 [crypto] - video_thumbnail 0.4.3 [flutter] - webview_flutter 2.1.1 [flutter webview_flutter_platform_interface webview_flutter_android webview_flutter_wkwebview] - youtube_player_flutter 8.0.0 [flutter flutter_inappwebview] dev dependencies: - auto_route_generator 2.4.1 [build source_gen analyzer path build_runner code_builder dart_style auto_route] - build_runner 2.1.4 [args async analyzer 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] - freezed 0.14.5 [analyzer build build_config collection meta source_gen freezed_annotation] - hive_generator 1.1.1 [build source_gen hive analyzer source_helper] - injectable_generator 1.5.2 [build source_gen path glob analyzer code_builder dart_style injectable collection] transitive dependencies: - _fe_analyzer_shared 27.0.0 [meta] - analyzer 2.4.0 [_fe_analyzer_shared cli_util collection convert crypto glob meta package_config path pub_semver source_span watcher yaml] - archive 3.1.5 [crypto path] - args 2.3.0 - async 2.8.1 [collection meta] - bloc 7.2.1 [meta] - boolean_selector 2.1.0 [source_span string_scanner] - build 2.1.1 [analyzer async convert crypto glob logging meta path] - build_config 1.0.0 [checked_yaml json_annotation path pubspec_parse yaml] - build_daemon 3.0.1 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel] - build_resolvers 2.0.4 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml] - build_runner_core 7.2.2 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml] - built_collection 5.1.1 - built_value 8.1.2 [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.1.0 - charcode 1.3.1 - checked_yaml 2.0.1 [json_annotation source_span yaml] - cli_util 0.3.4 [meta path] - clock 1.1.0 - cloud_firestore_platform_interface 5.4.2 [collection firebase_core flutter meta plugin_platform_interface] - code_builder 4.1.0 [built_collection built_value collection matcher meta] - collection 1.15.0 - convert 3.0.1 [typed_data] - cross_file 0.3.1+5 [flutter meta] - crypto 3.0.1 [collection typed_data] - dart_style 2.2.0 [analyzer args path pub_semver source_span] - decimal 1.3.0 [rational] - equatable 2.0.3 [collection meta] - eventify 1.0.0 - fake_async 1.2.0 [clock collection] - ffi 1.1.2 - file 6.1.2 [meta path] - firebase 9.0.2 [http http_parser js] - firebase_analytics_platform_interface 2.0.1 [flutter meta] - firebase_analytics_web 0.3.0+1 [firebase firebase_analytics_platform_interface flutter flutter_web_plugins meta] - firebase_auth_platform_interface 6.1.1 [firebase_core flutter meta plugin_platform_interface] - firebase_core_platform_interface 4.0.1 [collection flutter meta plugin_platform_interface] - firebase_core_web 1.1.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta] - firebase_crashlytics_platform_interface 3.1.3 [collection firebase_core flutter meta plugin_platform_interface] - firebase_messaging_platform_interface 3.0.6 [firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 2.0.6 [firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta] - firebase_performance_platform_interface 0.0.1+4 [firebase_core flutter plugin_platform_interface] - firebase_performance_web 0.0.1+1 [firebase firebase_performance_platform_interface flutter flutter_web_plugins] - firebase_remote_config_platform_interface 0.3.0+6 [firebase_core flutter meta plugin_platform_interface] - firebase_storage_platform_interface 4.0.3 [collection firebase_core flutter meta plugin_platform_interface] - fixnum 1.0.0 - flutter_blurhash 0.6.0 [flutter meta pedantic] - flutter_cache_manager 3.1.2 [clock collection file flutter http path path_provider pedantic rxdart sqflite uuid] - flutter_inappwebview 5.3.2 [flutter] - flutter_lints 1.0.4 [lints] - flutter_plugin_android_lifecycle 2.0.3 [flutter] - flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher meta source_span stream_channel string_scanner term_glyph typ ed_data] - flutter_web_plugins 0.0.0 [flutter js characters collection meta typed_data vector_math] - frontend_server_client 2.1.2 [async path] - geocoding_platform_interface 2.0.1 [flutter meta plugin_platform_interface] - glob 2.0.2 [async collection file path string_scanner] - google_sign_in_platform_interface 2.0.1 [flutter meta quiver] - google_sign_in_web 0.10.0+3 [flutter flutter_web_plugins google_sign_in_platform_interface js meta] - graphs 2.1.0 [collection] - http2 2.0.0 - http_multi_server 3.0.1 [async] - http_parser 4.0.0 [charcode collection source_span string_scanner typed_data] - image 3.0.8 [archive meta xml] - image_picker_for_web 2.1.3 [flutter flutter_web_plugins image_picker_platform_interface meta] - image_picker_platform_interface 2.4.1 [flutter http meta plugin_platform_interface cross_file] - io 1.0.3 [meta path string_scanner] - js 0.6.3 - lints 1.0.1 - list_ext 1.0.2 [quiver collection] - location_platform_interface 2.3.0 [flutter meta plugin_platform_interface] - location_web 3.1.1 [flutter flutter_web_plugins http_parser js location_platform_interface meta] - logging 1.0.2 - matcher 0.12.10 [stack_trace] - mime 1.0.0 - modal_bottom_sheet 2.0.0 [flutter] - nested 1.0.0 [flutter] - package_config 2.0.2 [path] - package_info_plus_linux 1.0.3 [package_info_plus_platform_interface flutter path] - package_info_plus_macos 1.2.0 [flutter] - package_info_plus_platform_interface 1.0.2 [flutter meta plugin_platform_interface] - package_info_plus_web 1.0.4 [flutter flutter_web_plugins http meta package_info_plus_platform_interface] - package_info_plus_windows 1.0.3 [package_info_plus_platform_interface ffi flutter win32] - path 1.8.0 - path_drawing 0.5.1 [vector_math meta path_parsing flutter] - path_parsing 0.2.1 [vector_math meta] - path_provider 2.0.5 [flutter path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows] - path_provider_linux 2.1.0 [flutter path path_provider_platform_interface xdg_directories] - path_provider_macos 2.0.2 [flutter] - path_provider_platform_interface 2.0.1 [flutter meta platform plugin_platform_interface] - path_provider_windows 2.0.3 [ffi flutter meta path path_provider_platform_interface win32] - pedantic 1.11.1 - permission_handler_platform_interface 3.6.2 [flutter meta plugin_platform_interface] - petitparser 4.3.0 [meta] - platform 3.0.2 - plugin_platform_interface 2.0.2 [meta] - pool 1.5.0 [async stack_trace] - process 4.2.3 [file path platform] - provider 6.0.1 [collection flutter nested] - pub_semver 2.1.0 [collection meta] - pubspec_parse 1.1.0 [checked_yaml collection json_annotation pub_semver yaml] - qr 2.1.0 [meta] - quiver 3.0.1 [matcher] - rational 1.2.1 - shelf 1.2.0 [async collection http_parser path stack_trace stream_channel] - shelf_web_socket 1.0.1 [shelf stream_channel web_socket_channel] - sky_engine 0.0.99 - socket_io_common 2.0.0-beta.1-nullsafety.1 [logging] - source_gen 1.1.1 [analyzer async build dart_style glob meta path source_span yaml] - source_helper 1.3.0 [analyzer collection source_gen] - source_span 1.8.1 [collection path term_glyph] - sqflite 2.0.0+4 [flutter sqflite_common path] - sqflite_common 2.0.1+1 [synchronized path meta] - stack_trace 1.10.0 [path] - stream_channel 2.1.0 [async] - stream_transform 2.0.0 - string_scanner 1.1.0 [charcode source_span] - syncfusion_flutter_core 19.3.43+1 [vector_math flutter] - synchronized 3.0.0 - term_glyph 1.2.0 - test_api 0.4.2 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher] - timing 1.0.0 [json_annotation] - typed_data 1.3.0 [collection] - uni_links_platform_interface 1.0.0 [flutter plugin_platform_interface] - uni_links_web 0.1.0 [flutter flutter_web_plugins uni_links_platform_interface] - universal_platform 1.0.0+1 - url_launcher_linux 2.0.2 [flutter] - url_launcher_macos 2.0.2 [flutter] - url_launcher_platform_interface 2.0.4 [flutter plugin_platform_interface] - url_launcher_web 2.0.4 [flutter flutter_web_plugins meta url_launcher_platform_interface] - url_launcher_windows 2.0.2 [flutter] - vector_math 2.1.0 - video_player_platform_interface 4.2.0 [flutter flutter_test meta] - video_player_web 2.0.4 [flutter flutter_web_plugins meta video_player_platform_interface] - watcher 1.0.1 [async path] - web_socket_channel 2.1.0 [async crypto stream_channel] - webview_flutter_android 2.0.15 [flutter webview_flutter_platform_interface] - webview_flutter_platform_interface 1.0.0 [flutter plugin_platform_interface] - webview_flutter_wkwebview 2.0.14 [flutter webview_flutter_platform_interface] - win32 2.2.9 [ffi] - xdg_directories 0.2.0 [meta path process] - xml 5.3.0 [collection meta petitparser] - yaml 3.1.0 [collection source_span string_scanner]

markusaksli-nc commented 3 years ago

Hi @alphamanorg What exactly happens that breaks it? Do you have a stack trace? Have you contacted the plugin maintainer regarding this? Thank you

google-oss-bot commented 3 years ago

Hey @alphamanorg. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

google-oss-bot commented 3 years ago

Since there haven't been any recent updates here, I am going to close this issue.

@alphamanorg if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.