Closed Dinesh-DK closed 2 years ago
@Dinesh-DK
Have you created SHA1 key with debug key info and adding the same to Firebase project ?
Also, try to activate Android device verification
from the console and make sure the SHA1 key is provided there.
The error you are getting seems to be occuring due to missing configuration rather than a bug in firebase_auth
.
Also, check this SO link and see if it helps.
Closing from here, as, the plugin is correctly catching the exception and throwing missing-client-identifier
, that means something is amiss from your integration point of view.
Bug report
Describe the bug An exception of the following type is being thrown Only on OnePlus8Pro while I try to use
FirebaseAuth.instance.verifyPhoneNumber
method while doing mobile number verification on a flutter app.FirebaseAuthException: [firebase_auth/missing-client-identifier] This request is missing a valid app identifier, meaning that neither SafetyNet checks nor reCAPTCHA checks succeeded. Please try again, or check the logcat for more details.
Steps to reproduce
Steps to reproduce the behavior:
FirebaseAuth.instance.verifyPhoneNumber
is the single-step replication procedure. the user is being redirected to Recaptcha page even though the safety net is being enabled. This doesn't seem to occur with any other device.verificationFailed
callback has been hit as well.Expected behavior
The ReCaptcha page should not occur and the OTP is expected to be sent to the mobile number.
Sample project
Providing a minimal example project which demonstrates the bug in isolation from your main App greatly enhances the chance of a timely fix. Please link to the public repository URL.
Additional context
This behavior is seen while the app is running on emulators (which is expected). but it is not the desired behavior for a real device and through the error tracking system it is evident that this particular issue happens on OnePlus8Pro device alone.
Model | OnePlus8Pro (QKR1.191246.002) -- | -- Model Id | QKR1.191246.002 Name | OnePlus8ProFlutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
``` Doctor summary (to see all details, run flutter doctor -v): [β] Flutter (Channel unknown, 2.10.5, on Microsoft Windows [Version 10.0.22000.795], locale en-IN) [β] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [X] Visual Studio - develop for Windows X Visual Studio not installed; this is necessary for Windows development. Download at https://visualstudio.microsoft.com/downloads/. Please install the "Desktop development with C++" workload, including all of its default components [β] Android Studio (version 2020.3) [β] VS Code [β] Connected device (1 available) [β] HTTP Host Availability ! Doctor found issues in 1 category. ```Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
``` Dart SDK 2.16.2 Flutter SDK 2.10.5 dependencies: - animated_bottom_navigation_bar 0.3.3 [flutter] - cached_network_image 3.2.0 [flutter flutter_cache_manager octo_image cached_network_image_platform_interface cached_network_image_web] - connectivity_plus 2.2.0 [flutter connectivity_plus_platform_interface connectivity_plus_linux connectivity_plus_macos connectivity_plus_web connectivity_plus_windows] - contacts_service 0.6.3 [flutter collection quiver] - crypto 3.0.2 [typed_data] - cupertino_icons 1.0.4 - dio 4.0.6 [http_parser path] - file_picker 4.4.0 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path] - firebase_analytics 9.1.1 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter] - firebase_auth 3.3.8 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta] - firebase_core 1.12.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_dynamic_links 3.0.2 [firebase_core flutter] - firebase_messaging 10.0.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 typed_data vector_math sky_engine] - flutter_app_badger 1.4.0 [flutter] - flutter_inappwebview 5.4.3+7 [flutter] - flutter_local_notifications 9.5.3+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 typed_data vector_math] - flutter_markdown 0.6.9+1 [flutter markdown meta path] - flutter_screenutil 5.5.3+2 [flutter] - flutter_segment 3.9.0 [flutter flutter_web_plugins meta] - flutter_sim_country_code 0.1.2 [flutter] - flutter_slidable 1.3.0 [flutter] - flutter_typeahead 3.2.7 [flutter flutter_keyboard_visibility] - fluttertoast 8.0.9 [flutter flutter_web_plugins] - freshchat_sdk 0.9.7 [flutter] - google_fonts 2.3.0 [flutter http path_provider crypto] - google_sign_in 5.3.1 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web] - image_picker 0.8.5+3 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_platform_interface] - intl_phone_field 3.1.0 [flutter] - jovial_svg 1.1.2 [xml args quiver vector_math jovial_misc http meta flutter] - local_auth 1.1.11 [flutter flutter_plugin_android_lifecycle intl platform] - lottie 1.2.2 [archive flutter path vector_math] - markdown 4.0.1 [args charcode meta] - package_info 2.0.2 [flutter] - permission_handler 8.3.0 [flutter meta permission_handler_platform_interface] - pinput 1.2.2 [flutter] - provider 6.0.3 [collection flutter nested] - reactive_forms 10.7.0 [flutter intl] - sendbird_sdk 3.1.12 [flutter collection uuid json_annotation encrypt shared_preferences http logger mime connectivity_plus meta http_parser web_socket_channel universal_io] - sentry_flutter 6.5.1 [flutter flutter_web_plugins sentry package_info_plus meta] - shared_preferences 2.0.15 [flutter shared_preferences_android shared_preferences_ios shared_preferences_linux shared_preferences_macos shared_preferences_platform_interface shared_preferences_web shared_preferences_windows] - shimmer 2.0.0 [flutter] - sign_in_with_apple 3.3.0 [flutter meta sign_in_with_apple_platform_interface sign_in_with_apple_web] - snapping_sheet 3.1.0 [flutter] - sqfentity 2.2.0+6 [flutter sqflite_sqlcipher synchronized path sqfentity_gen sqflite_common sqflite_common_ffi meta] - sqfentity_gen 2.2.0+12 [build source_gen meta analyzer] - story_view 0.13.2 [flutter flutter_cache_manager rxdart video_player collection] - syncfusion_flutter_charts 19.4.56 [flutter intl vector_math syncfusion_flutter_core] - syncfusion_flutter_treemap 19.4.56-beta [flutter syncfusion_flutter_core] - timelines 0.1.0 [flutter] - timer_count_down 2.2.1 [flutter] - uni_links 0.5.1 [flutter uni_links_platform_interface uni_links_web] - 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] dev dependencies: - build_runner 2.1.11 [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] - 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 typed_data] transitive dependencies: - _fe_analyzer_shared 31.0.0 [meta] - analyzer 2.8.0 [_fe_analyzer_shared cli_util collection convert crypto glob meta package_config path pub_semver source_span watcher yaml] - 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 2.3.0 [analyzer async convert crypto glob logging meta path] - build_config 1.0.0 [checked_yaml json_annotation path pubspec_parse yaml] - build_daemon 3.1.0 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel] - build_resolvers 2.0.6 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml] - build_runner_core 7.2.3 [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.3.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.2.0 - charcode 1.3.1 - checked_yaml 2.0.1 [json_annotation source_span yaml] - cli_util 0.3.5 [meta path] - clock 1.1.0 - code_builder 4.1.0 [built_collection built_value collection matcher meta] - collection 1.15.0 - connectivity_plus_linux 1.2.0 [flutter connectivity_plus_platform_interface meta nm] - connectivity_plus_macos 1.2.2 [connectivity_plus_platform_interface flutter] - connectivity_plus_platform_interface 1.2.1 [flutter meta plugin_platform_interface] - connectivity_plus_web 1.2.1 [connectivity_plus_platform_interface flutter_web_plugins flutter] - connectivity_plus_windows 1.2.1 [connectivity_plus_platform_interface flutter] - convert 3.0.2 [typed_data] - cross_file 0.3.3+1 [js meta] - csslib 0.17.2 [source_span] - dart_style 2.2.1 [analyzer args path pub_semver source_span] - dbus 0.6.8 [args ffi meta xml] - encrypt 5.0.1 [args asn1lib clock collection crypto pointycastle] - fake_async 1.2.0 [clock collection] - ffi 1.2.1 - file 6.1.2 [meta path] - firebase_analytics_platform_interface 3.1.0 [firebase_core flutter meta plugin_platform_interface] - firebase_analytics_web 0.4.0+7 [firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js] - firebase_auth_platform_interface 6.2.0 [firebase_core flutter meta plugin_platform_interface] - firebase_auth_web 3.3.8 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta] - firebase_core_platform_interface 4.2.4 [collection flutter meta plugin_platform_interface] - firebase_core_web 1.6.0 [firebase_core_platform_interface flutter flutter_web_plugins js meta] - firebase_messaging_platform_interface 3.2.0 [firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 2.2.8 [firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta] - fixnum 1.0.1 - flutter_blurhash 0.6.4 [flutter] - flutter_cache_manager 3.3.0 [clock collection file flutter http path path_provider pedantic rxdart sqflite uuid] - 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_local_notifications_linux 0.4.1+1 [flutter flutter_local_notifications_platform_interface dbus path xdg_directories] - flutter_local_notifications_platform_interface 5.0.0 [flutter plugin_platform_interface] - flutter_plugin_android_lifecycle 2.0.6 [flutter] - flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta typed_data vector_math] - frontend_server_client 2.1.3 [async path] - glob 2.0.2 [async collection file path string_scanner] - google_sign_in_android 5.2.5 [flutter google_sign_in_platform_interface] - google_sign_in_ios 5.2.5 [flutter google_sign_in_platform_interface] - google_sign_in_platform_interface 2.1.3 [flutter quiver] - google_sign_in_web 0.10.0+5 [flutter flutter_web_plugins google_sign_in_platform_interface js] - graphs 2.1.0 [collection] - html 0.15.0 [csslib source_span] - http 0.13.4 [async http_parser meta path] - http_multi_server 3.2.0 [async] - http_parser 4.0.1 [collection source_span string_scanner typed_data] - image 3.1.3 [archive meta xml] - image_picker_android 0.8.4+13 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface] - image_picker_for_web 2.1.8 [flutter flutter_web_plugins image_picker_platform_interface] - image_picker_ios 0.8.4+11 [flutter image_picker_platform_interface] - image_picker_platform_interface 2.5.0 [cross_file flutter http plugin_platform_interface] - intl 0.17.0 [clock path] - io 1.0.3 [meta path string_scanner] - jovial_misc 0.8.4 [pointycastle intl async collection convert meta] - js 0.6.3 - json_annotation 4.5.0 [meta] - logger 1.1.0 - logging 1.0.2 - matcher 0.12.11 [stack_trace] - material_color_utilities 0.1.3 - meta 1.7.0 - mime 1.0.2 - nested 1.0.0 [flutter] - nm 0.4.4 [dbus] - 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 1.8.0 - 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] - path_provider_android 2.0.11 [flutter path_provider_platform_interface] - path_provider_ios 2.0.7 [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 4.4.0 [meta] - platform 3.1.0 - 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] - pub_semver 2.1.1 [collection meta] - pubspec_parse 1.2.0 [checked_yaml collection json_annotation pub_semver yaml] - quiver 3.1.0 [matcher] - rxdart 0.27.4 - sentry 6.5.1 [http meta stack_trace uuid] - shared_preferences_android 2.0.10 [flutter shared_preferences_platform_interface] - shared_preferences_ios 2.0.9 [flutter shared_preferences_platform_interface] - shared_preferences_linux 2.1.1 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface] - shared_preferences_macos 2.0.4 [flutter shared_preferences_platform_interface] - shared_preferences_platform_interface 2.0.0 [flutter] - shared_preferences_web 2.0.4 [flutter flutter_web_plugins shared_preferences_platform_interface] - shared_preferences_windows 2.1.1 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface] - 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] - sign_in_with_apple_platform_interface 1.0.0 [flutter plugin_platform_interface meta] - sign_in_with_apple_web 1.0.1 [flutter flutter_web_plugins sign_in_with_apple_platform_interface js] - sky_engine 0.0.99 - source_gen 1.2.2 [analyzer async build dart_style glob meta path source_span yaml] - source_span 1.8.1 [collection path term_glyph] - sqflite 2.0.2 [flutter sqflite_common path] - sqflite_common 2.0.1+1 [synchronized path meta] - sqflite_common_ffi 2.1.0+2 [sqlite3 sqflite_common synchronized path meta] - sqflite_sqlcipher 2.1.1 [flutter synchronized path sqflite_common] - sqlite3 1.5.1 [collection ffi 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.4.56 [vector_math flutter] - synchronized 3.0.0+2 - term_glyph 1.2.0 - test_api 0.4.8 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher] - timezone 0.8.0 [path] - 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_io 2.0.4 [collection crypto meta typed_data] - url_launcher_android 6.0.14 [flutter url_launcher_platform_interface] - url_launcher_ios 6.0.14 [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.7 [flutter flutter_web_plugins url_launcher_platform_interface] - url_launcher_windows 3.0.1 [flutter url_launcher_platform_interface] - vector_math 2.1.1 - video_player 2.2.17 [flutter video_player_platform_interface video_player_web html] - video_player_platform_interface 5.1.1 [flutter plugin_platform_interface] - video_player_web 2.0.10 [flutter flutter_web_plugins video_player_platform_interface] - watcher 1.0.1 [async path] - web_socket_channel 2.2.0 [async crypto stream_channel] - win32 2.3.6 [ffi] - xdg_directories 0.2.0+1 [meta path process] - xml 5.3.1 [collection meta petitparser] - yaml 3.1.1 [collection source_span string_scanner] ```