Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Firebase Auth]: Firebase phone auth not working #12594

Closed
1 task done
ibragimazizli opened this issue Apr 5, 2024 · 13 comments
Closed
1 task done

[Firebase Auth]: Firebase phone auth not working #12594

ibragimazizli opened this issue Apr 5, 2024 · 13 comments
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. closed-by-bot Needs Attention This issue needs maintainer attention. platform: android Issues / PRs which are specifically for Android. platform: ios Issues / PRs which are specifically for iOS. plugin: auth resolution: no-response Customer did not respond after some time. Stale Issue with no recent activity type: bug Something isn't working

Comments

@ibragimazizli
Copy link

ibragimazizli commented Apr 5, 2024

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

Auth

Which platforms are affected?

Android, iOS

Description

Hello everyone.

I added firebase phone auth in my app. but it's not sending sms codes to devices. ( real device) sometimes test numbers works fine. but after couple of hours it stop working.

I've added sha1 sha256 keys from google console and local keys and it still not working. I've done all the things internet says about it but it still not working:

Flutter doctor:


flutter doctor -v 
[✓] Flutter (Channel stable, 3.19.5, on macOS 14.4.1 23E224 darwin-arm64, locale en-AZ)
    • Flutter version 3.19.5 on channel stable at /Users/ibrahimebdulezizli/development/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 300451adae (7 days ago), 2024-03-27 21:54:07 -0500
    • Engine revision e76c956498
    • Dart version 3.3.3
    • DevTools version 2.31.1

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/ibrahimebdulezizli/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • ANDROID_HOME = /Users/ibrahimebdulezizli/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15E204a
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.87.2)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.86.0

[✓] Connected device (4 available)
    • sdk gphone64 arm64 (mobile) • emulator-5554             • android-arm64  • Android 14 (API 34) (emulator)
    • iPhone (mobile)             • 00008110-001C10A922D9401E • ios            • iOS 17.4.1 21E236
    • macOS (desktop)             • macos                     • darwin-arm64   • macOS 14.4.1 23E224 darwin-arm64
    • Chrome (web)                • chrome                    • web-javascript • Google Chrome 123.0.6312.106
      local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!

build.gradle:


dependencies {
    // Import the BoM for the Firebase platform
    implementation platform('com.google.firebase:firebase-bom:32.8.0')
    implementation 'com.android.billingclient:billing:6.2.0'
    // Add the dependencies for the App Check libraries
    implementation 'com.android.support:multidex:2.0.1'
    // When using the BoM, you don't specify versions in Firebase library dependencies
    implementation("com.google.firebase:firebase-appcheck-playintegrity")
    implementation("com.google.firebase:firebase-auth-ktx") -----> ( I've used auth and auth-ktx nothing changes)
    implementation("com.google.firebase:firebase-appcheck-debug:16.0.0-beta01")
    implementation ("com.google.android.play:integrity:1.3.0")
    implementation 'com.facebook.android:facebook-login:latest.release'
    implementation("com.google.firebase:firebase-analytics")
    implementation("com.google.firebase:firebase-crashlytics")
    implementation("com.google.firebase:firebase-perf")
    // local notification
    coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.2.2'
    implementation 'androidx.browser:browser:1.3.0' 
    implementation 'com.google.android.gms:play-services-safetynet:18.0.1'
    implementation 'androidx.window:window:1.1.0-alpha04'
    implementation 'androidx.window:window-java:1.0.0'


}

Reproducing the issue

Phone auth flutter firebase

Firebase Core version

2.28.0

Flutter Version

3.19.5

Relevant Log Output

Debug console ( With test number): 



I/zzb     (13716): ForceRecaptchaV2Flow from phoneAuthOptions = false, ForceRecaptchav2Flow from firebaseSettings = false
W/System  (13716): Ignoring header X-Firebase-Locale because its value was null.
D/TrafficStats(13716): tagSocket(95) with statsTag=0xffffffff, statsUid=-1
W/LocalRequestInterceptor(13716): Error getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: Error returned from API. code: 403 body: App attestation failed.
D/TrafficStats(13716): tagSocket(167) with statsTag=0xffffffff, statsUid=-1
E/zzb     (13716): Failed to initialize reCAPTCHA config: No Recaptcha Enterprise siteKey configured for tenant/project *
W/System  (13716): Ignoring header X-Firebase-Locale because its value was null.
W/LocalRequestInterceptor(13716): Error getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: Too many attempts.
D/TrafficStats(13716): tagSocket(161) with statsTag=0xffffffff, statsUid=-1
I/PlayCore(13716): UID: [10215]  PID: [13716] IntegrityService : requestIntegrityToken(IntegrityTokenRequest{nonce=zUUiZ9D4qbTngoXq3A_IIPVDuS527zX2Y9eqoEW17jY, cloudProjectNumber=551503664846, network=null})
I/PlayCore(13716): UID: [10215]  PID: [13716] IntegrityService : Initiate binding to the service.
I/PlayCore(13716): UID: [10215]  PID: [13716] IntegrityService : ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.integrityservice.IntegrityService})
I/PlayCore(13716): UID: [10215]  PID: [13716] IntegrityService : linkToDeath
I/PlayCore(13716): UID: [10215]  PID: [13716] OnRequestIntegrityTokenCallback : onRequestIntegrityToken
I/PlayCore(13716): UID: [10215]  PID: [13716] IntegrityService : Unbind from service.
W/System  (13716): Ignoring header X-Firebase-Locale because its value was null.
W/LocalRequestInterceptor(13716): Error getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: Error returned from API. code: 403 body: App attestation failed.
W/JavaBinder(13716): BinderProxy is being destroyed but the application did not call unlinkToDeath to unlink all of its death recipients beforehand.  Releasing leaked death recipient: com.google.android.play.integrity.internal.u
I/BpBinder(13716): onLastStrongRef automatically unlinking death recipients: 
D/TrafficStats(13716): tagSocket(179) with statsTag=0xffffffff, statsUid=-1
W/FirebaseAuth(13716): [SmsRetrieverHelper] Timed out waiting for SMS.

Debug console with real number:

zzb     (13716): ForceRecaptchaV2Flow from phoneAuthOptions = false, ForceRecaptchav2Flow from firebaseSettings = false
W/System  (13716): Ignoring header X-Firebase-Locale because its value was null.
W/LocalRequestInterceptor(13716): Error getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: Error returned from API. code: 403 body: App attestation failed.
E/zzb     (13716): Failed to initialize reCAPTCHA config: No Recaptcha Enterprise siteKey configured for tenant/project *
I/PlayCore(13716): UID: [10215]  PID: [13716] IntegrityService : requestIntegrityToken(IntegrityTokenRequest{nonce=91bF6l0749j1CTK2pEMWqlPTQDwalBapNxb_4qGbuVw, cloudProjectNumber=551503664846, network=null})
I/PlayCore(13716): UID: [10215]  PID: [13716] IntegrityService : Initiate binding to the service.
I/PlayCore(13716): UID: [10215]  PID: [13716] IntegrityService : ServiceConnectionImpl.onServiceConnected(ComponentInfo{com.android.vending/com.google.android.finsky.integrityservice.IntegrityService})
I/PlayCore(13716): UID: [10215]  PID: [13716] IntegrityService : linkToDeath
I/PlayCore(13716): UID: [10215]  PID: [13716] OnRequestIntegrityTokenCallback : onRequestIntegrityToken
I/PlayCore(13716): UID: [10215]  PID: [13716] IntegrityService : Unbind from service.
W/System  (13716): Ignoring header X-Firebase-Locale because its value was null.
W/LocalRequestInterceptor(13716): Error getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: Too many attempts.
E/FirebaseAuth(13716): [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17028 Invalid app info in play_integrity_token
D/FirebaseAuth(13716): Invoking original failure callbacks after phone verification failure for +994559559356, error - This app is not authorized to use Firebase Authentication. Please verify that the correct package name, SHA-1, and SHA-256 are configured in the Firebase Console. [ Invalid app info in play_integrity_token ]
[log] This app is not authorized to use Firebase Authentication. Please verify that the correct package name, SHA-1, and SHA-256 are configured in the Firebase Console. [ Invalid app info in play_integrity_token ]

in addition google console shows play integrity incomplete :

image ```

Flutter dependencies

Expand Flutter dependencies snippet
Dart SDK 3.3.3
Flutter SDK 3.19.5
burda 1.0.1+7

dependencies:
- bloc 8.1.4 [meta]
- cache 1.0.0+1
- cached_network_image 3.3.1 [cached_network_image_platform_interface cached_network_image_web flutter flutter_cache_manager octo_image]
- cloud_firestore 4.16.0 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
- connectivity_plus 6.0.1 [flutter flutter_web_plugins connectivity_plus_platform_interface web meta nm]
- country_flags 2.2.0 [collection flutter jovial_svg]
- country_picker 2.0.25 [collection universal_io flutter]
- cupertino_icons 1.0.6
- dashed_circular_progress_bar 0.0.6 [flutter]
- device_info_plus 10.0.1 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta web win32 win32_registry]
- device_preview 1.1.0 [flutter flutter_localizations provider device_frame freezed_annotation json_annotation shared_preferences collection]
- dlibphonenumber 1.1.11 [protobuf meta fixnum]
- dotted_border 2.1.0 [flutter path_drawing]
- equatable 2.0.5 [collection meta]
- firebase_analytics 10.10.0 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter]
- firebase_app_check 0.2.2 [firebase_app_check_platform_interface firebase_app_check_web firebase_core firebase_core_platform_interface flutter]
- firebase_auth 4.19.0 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 2.28.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_crashlytics 3.5.0 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
- firebase_messaging 14.8.0 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- firebase_storage 11.7.0 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter]
- flow_builder 0.0.10 [flutter]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_bloc 8.1.5 [bloc flutter provider]
- flutter_facebook_auth 6.1.1 [flutter flutter_facebook_auth_platform_interface flutter_facebook_auth_web facebook_auth_desktop]
- flutter_local_notifications 17.0.0 [clock flutter flutter_local_notifications_linux flutter_local_notifications_platform_interface timezone]
- flutter_notification_channel 3.1.0 [flutter plugin_platform_interface]
- flutter_otp_text_field 1.1.3+2 [flutter]
- flutter_prevent_screen_capture 0.0.2 [flutter plugin_platform_interface]
- flutter_statusbarcolor_ns 0.5.0 [flutter]
- flutter_storage_path 1.0.4 [flutter]
- flutter_story_view 0.0.3 [flutter intl video_player cached_network_image]
- flutter_svg_provider 1.0.7 [flutter http flutter_svg]
- font_awesome_flutter 10.7.0 [flutter]
- geolocator 11.0.0 [flutter geolocator_platform_interface geolocator_android geolocator_apple geolocator_web geolocator_windows]
- get_it 7.6.8 [async collection meta]
- google_fonts 6.2.1 [flutter http path_provider crypto]
- google_sign_in 6.2.1 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web]
- gradient_borders 1.0.0 [flutter]
- http 1.2.1 [async http_parser meta web]
- image_picker 1.0.7 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_linux image_picker_macos image_picker_platform_interface image_picker_windows]
- intl 0.18.1 [clock meta path]
- libphonenumber 2.0.2 [flutter meta]
- loader_overlay 4.0.0 [flutter back_button_interceptor]
- location 5.0.3 [flutter location_platform_interface location_web]
- lottie 3.1.0 [archive flutter http path vector_math]
- meta 1.11.0
- otp_pin_field 1.2.2 [flutter flutter_web_plugins plugin_platform_interface]
- pay 2.0.0 [flutter flutter_localizations pay_android pay_ios pay_platform_interface meta]
- permission_handler 11.3.1 [flutter meta permission_handler_android permission_handler_apple permission_handler_html permission_handler_windows permission_handler_platform_interface]
- persistent_bottom_nav_bar 5.0.2 [flutter]
- sentry_flutter 7.18.0 [flutter flutter_web_plugins sentry package_info_plus meta ffi]
- 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]
- shimmer 3.0.0 [flutter]
- sizer 2.0.15 [universal_io flutter]
- skeletonizer 1.1.1 [collection flutter]
- sliding_drawer 1.0.2 [flutter]
- story_view 0.16.5 [flutter flutter_cache_manager rxdart video_player collection]
- svg_flutter 0.0.1 [flutter vector_graphics vector_graphics_codec vector_graphics_compiler]
- telephony 0.2.0 [flutter platform]
- transparent_image 2.0.1
- url_launcher 6.2.5 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]

dev dependencies:
- flutter_lints 3.0.2 [lints]
- flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math leak_tracker_flutter_testing async boolean_selector characters collection leak_tracker leak_tracker_testing material_color_utilities meta source_span stream_channel string_scanner term_glyph vm_service]

dependency overrides:
- image_picker_android 0.8.4+13 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface]

transitive dependencies:
- _flutterfire_internals 1.3.28 [collection firebase_core firebase_core_platform_interface flutter meta]
- archive 3.4.10 [crypto path pointycastle]
- args 2.4.2
- async 2.11.0 [collection meta]
- back_button_interceptor 7.0.3 [collection flutter]
- boolean_selector 2.1.1 [source_span string_scanner]
- cached_network_image_platform_interface 4.0.0 [flutter flutter_cache_manager]
- cached_network_image_web 1.1.1 [cached_network_image_platform_interface flutter flutter_cache_manager]
- characters 1.3.0
- clock 1.1.1
- cloud_firestore_platform_interface 6.1.12 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 3.11.0 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins]
- collection 1.18.0
- connectivity_plus_platform_interface 2.0.0 [flutter meta plugin_platform_interface]
- convert 3.1.1 [typed_data]
- cross_file 0.3.4+1 [meta web]
- crypto 3.0.3 [typed_data]
- csslib 1.0.0 [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]
- facebook_auth_desktop 1.0.3 [flutter http flutter_secure_storage flutter_facebook_auth_platform_interface]
- fake_async 1.3.1 [clock collection]
- ffi 2.1.2
- 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.2 [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.10.1 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_analytics_web 0.5.7 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins]
- firebase_app_check_platform_interface 0.1.0+22 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_app_check_web 0.1.2 [_flutterfire_internals firebase_app_check_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins]
- firebase_auth_platform_interface 7.2.1 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 5.11.0 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser meta web]
- firebase_core_platform_interface 5.0.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.14.0 [firebase_core_platform_interface flutter flutter_web_plugins meta web]
- firebase_crashlytics_platform_interface 3.6.28 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_platform_interface 4.5.30 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 3.8.0 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins meta web]
- firebase_storage_platform_interface 5.1.15 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_storage_web 3.9.0 [_flutterfire_internals async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http meta web]
- fixnum 1.1.0
- flutter_cache_manager 3.3.1 [clock collection file flutter http path path_provider rxdart sqflite uuid]
- flutter_facebook_auth_platform_interface 5.0.0 [flutter plugin_platform_interface]
- flutter_facebook_auth_web 5.0.0 [flutter flutter_web_plugins js flutter_facebook_auth_platform_interface]
- 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_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math]
- flutter_plugin_android_lifecycle 2.0.17 [flutter]
- 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_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_svg 2.0.10+1 [flutter http vector_graphics vector_graphics_codec vector_graphics_compiler]
- flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math]
- freezed_annotation 2.4.1 [collection json_annotation meta]
- geolocator_android 4.5.4 [flutter geolocator_platform_interface meta uuid]
- geolocator_apple 2.3.7 [flutter geolocator_platform_interface]
- geolocator_platform_interface 4.2.2 [flutter plugin_platform_interface vector_math meta]
- geolocator_web 3.0.0 [flutter flutter_web_plugins geolocator_platform_interface]
- geolocator_windows 0.2.3 [flutter geolocator_platform_interface]
- google_identity_services_web 0.3.1+1 [meta web]
- google_sign_in_android 6.1.22 [flutter google_sign_in_platform_interface]
- google_sign_in_ios 5.7.5 [flutter google_sign_in_platform_interface]
- google_sign_in_platform_interface 2.4.5 [flutter plugin_platform_interface]
- google_sign_in_web 0.12.4 [flutter flutter_web_plugins google_identity_services_web google_sign_in_platform_interface http web]
- html 0.15.4 [csslib source_span]
- http_parser 4.0.2 [collection source_span string_scanner typed_data]
- image_picker_for_web 3.0.3 [flutter flutter_web_plugins image_picker_platform_interface mime web]
- image_picker_ios 0.8.9+2 [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.4 [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]
- jovial_misc 0.8.5 [pointycastle async collection convert meta]
- jovial_svg 1.1.20 [xml collection args vector_math jovial_misc http meta flutter]
- js 0.6.7 [meta]
- json_annotation 4.8.1 [meta]
- leak_tracker 10.0.0 [clock collection meta path vm_service]
- leak_tracker_flutter_testing 2.0.1 [flutter leak_tracker leak_tracker_testing matcher meta]
- leak_tracker_testing 2.0.1 [leak_tracker matcher meta]
- lints 3.0.0
- location_platform_interface 3.1.2 [flutter plugin_platform_interface]
- location_web 4.2.0 [flutter flutter_web_plugins http_parser js location_platform_interface]
- matcher 0.12.16+1 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.8.0 [collection]
- mime 1.0.5
- nested 1.0.0 [flutter]
- nm 0.5.0 [dbus]
- octo_image 2.0.0 [flutter]
- package_info_plus 4.2.0 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface win32]
- package_info_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- path 1.9.0
- path_drawing 1.0.1 [vector_math meta path_parsing flutter]
- path_parsing 1.0.1 [vector_math meta]
- path_provider 2.1.2 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows]
- path_provider_android 2.2.2 [flutter path_provider_platform_interface]
- path_provider_foundation 2.3.2 [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.2 [flutter platform plugin_platform_interface]
- path_provider_windows 2.2.1 [ffi flutter path path_provider_platform_interface win32]
- pay_android 2.0.0 [flutter flutter_localizations pay_platform_interface]
- pay_ios 1.0.11 [flutter pay_platform_interface]
- pay_platform_interface 1.0.4 [flutter yaml]
- permission_handler_android 12.0.5 [flutter permission_handler_platform_interface]
- permission_handler_apple 9.4.4 [flutter permission_handler_platform_interface]
- permission_handler_html 0.1.1 [flutter flutter_web_plugins permission_handler_platform_interface]
- permission_handler_platform_interface 4.2.1 [flutter meta plugin_platform_interface]
- permission_handler_windows 0.2.1 [flutter permission_handler_platform_interface]
- petitparser 6.0.2 [meta]
- platform 3.1.4
- plugin_platform_interface 2.1.8 [meta]
- pointycastle 3.7.4 [collection convert js]
- protobuf 3.1.0 [collection fixnum meta]
- provider 6.1.2 [collection flutter nested]
- rxdart 0.27.7
- sentry 7.18.0 [http meta stack_trace uuid]
- shared_preferences_android 2.2.1 [flutter shared_preferences_platform_interface]
- shared_preferences_foundation 2.3.5 [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.2 [flutter plugin_platform_interface]
- shared_preferences_web 2.3.0 [flutter flutter_web_plugins shared_preferences_platform_interface web]
- shared_preferences_windows 2.3.2 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- sky_engine 0.0.99
- source_span 1.10.0 [collection path term_glyph]
- sprintf 7.0.0
- sqflite 2.3.3 [flutter sqflite_common path]
- sqflite_common 2.5.4 [synchronized path meta]
- stack_trace 1.11.1 [path]
- stream_channel 2.1.2 [async]
- string_scanner 1.2.0 [source_span]
- synchronized 3.1.0+1
- 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]
- typed_data 1.3.2 [collection]
- universal_io 2.2.2 [collection meta typed_data]
- url_launcher_android 6.3.0 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.2.5 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.1.1 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.1.0 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.3.2 [flutter plugin_platform_interface]
- url_launcher_web 2.3.0 [flutter flutter_web_plugins url_launcher_platform_interface web]
- url_launcher_windows 3.1.1 [flutter url_launcher_platform_interface]
- uuid 4.3.3 [crypto sprintf meta fixnum]
- vector_graphics 1.1.11+1 [flutter http vector_graphics_codec]
- vector_graphics_codec 1.1.11+1
- vector_graphics_compiler 1.1.11+1 [args meta path_parsing xml vector_graphics_codec path]
- vector_math 2.1.4
- video_player 2.8.4 [flutter html video_player_android video_player_avfoundation video_player_platform_interface video_player_web]
- video_player_android 2.4.12 [flutter video_player_platform_interface]
- video_player_avfoundation 2.5.6 [flutter video_player_platform_interface]
- video_player_platform_interface 6.2.2 [flutter plugin_platform_interface]
- video_player_web 2.3.0 [flutter flutter_web_plugins video_player_platform_interface web]
- vm_service 13.0.0
- web 0.5.1
- win32 5.4.0 [ffi]
- win32_registry 1.1.2 [ffi win32]
- xdg_directories 1.0.4 [meta path]
- xml 6.5.0 [collection meta petitparser]
- yaml 3.1.2 [collection source_span string_scanner]

Additional context and comments

No response

@ibragimazizli ibragimazizli added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Apr 5, 2024
@TarekkMA TarekkMA added plugin: auth platform: android Issues / PRs which are specifically for Android. platform: ios Issues / PRs which are specifically for iOS. labels Apr 5, 2024
@prologikus
Copy link

++
I can agree i have this bug too ONLY on WEB

@TarekkMA
Copy link
Contributor

TarekkMA commented Apr 5, 2024

Hello @ibragimazizli thank you for reporting this issue. We will look into it.

@prologikus, the web one have been solved #12587, the fix will be available next release.

@ibragimazizli
Copy link
Author

Hello @ibragimazizli thank you for reporting this issue. We will look into it.

@prologikus, the web one have been solved #12587, the fix will be available next release.

How long will take to release new version?

@ibragimazizli
Copy link
Author

++ I can agree i have this bug too ONLY on WEB

Did you solved on mobile?

@TarekkMA
Copy link
Contributor

TarekkMA commented Apr 5, 2024

We did able to reproduce this on web and solved the underlying issue causing it.

I will try to reproduce on mobile and see what we can do from there.

@yao-chao
Copy link

yao-chao commented Apr 7, 2024

hi I'm new here. I have a problem that is not allowing users to access their account. Can anyone help me, I really appreciate it. I leave you the clues of my errors and the code.

W/LocalRequestInterceptor(23603): Error getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: Error returned from API. code: 403 body: App attestation failed.

W/LocalRequestInterceptor(23603): Error getting App Check token; using placeholder token instead. Error: com.google.firebase.FirebaseException: Too many attempts.

Future main() async
//void main() async
{
WidgetsFlutterBinding.ensureInitialized();
await Firebase.initializeApp(
options:
DefaultFirebaseOptions.currentPlatform,
); //DefaultFirebaseOptions.currentPlatform,
await FirebaseAppCheck.instance.activate(

// webProvider: ReCaptchaV3Provider('recaptcha-v3-site-key'),

androidProvider: AndroidProvider.playIntegrity,

// appleProvider: AppleProvider.appAttest,
);
sharedPreferences = await SharedPreferences.getInstance();
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({super.key});

@OverRide
Widget build(BuildContext context) {
return const MaterialApp(
title: 'Master App',
debugShowCheckedModeBanner: false ,
home: MySplashScreen(),

);

}
}

@ibragimazizli
Copy link
Author

We did able to reproduce this on web and solved the underlying issue causing it.

I will try to reproduce on mobile and see what we can do from there.

Is there any news about fix?

@AmbroseNTK
Copy link

Did you enable Firebase App Check API on GCP?

@KKimj
Copy link
Contributor

KKimj commented Apr 11, 2024

Shall we review together if there are any bugs in this diff and other files?

Introducing a large-scale usage of Dart JS interop might have introduced some side-effects.

https://github.com/firebase/flutterfire/compare/firebase_auth_web-v5.9.6...firebase_auth_web-v5.11.1?diff=split&w=#diff-073c6ae89d1947a587a79d2020e2cd9478a0d218a4aeb8dd6bce4b37344b92e1R10-R1205

@ibragimazizli
Copy link
Author

Did you enable Firebase App Check API on GCP?

yes

@russellwheatley
Copy link
Member

russellwheatley commented Apr 16, 2024

@ibragimazizli - in your initial post, you said:

I added firebase phone auth in my app. but it's not sending sms codes to devices. ( real device) sometimes test numbers works fine. but after couple of hours it stop working.

So it works but will stop working after a while. This is because there are rate limits to how often you can keep sending sms codes. Here is a list of rate limits for you to follow: https://firebase.google.com/docs/auth/limits#phone-auth

In terms of sending sms codes to real devices, check your console log output. It says the following:

E/FirebaseAuth(13716): [SmsRetrieverHelper] SMS verification code request failed: unknown status code: 17028 Invalid app info in play_integrity_token

This sounds like a misconfiguration. Have you got your SHA-1 and SHA-256 key in your Firebase console? I would read this part of documentation very carefully: https://firebase.google.com/docs/auth/android/phone-auth?_gl=1*sk7sr9*_up*MQ..*_ga*MTY4MjUwODYyNy4xNzEzMjc0OTU3*_ga_CW55HF8NVT*MTcxMzI3NDk1Ni4xLjAuMTcxMzI3NDk1Ni4wLjAuMA..#enable-app-verification

@russellwheatley russellwheatley added blocked: customer-response Waiting for customer response, e.g. more information was requested. Needs Attention This issue needs maintainer attention. and removed Needs Attention This issue needs maintainer attention. labels Apr 16, 2024
@google-oss-bot google-oss-bot added the Stale Issue with no recent activity label Apr 25, 2024
@google-oss-bot
Copy link

Hey @ibragimazizli. 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
Copy link

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

@ibragimazizli 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.

@TarekkMA TarekkMA added the resolution: no-response Customer did not respond after some time. label May 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked: customer-response Waiting for customer response, e.g. more information was requested. closed-by-bot Needs Attention This issue needs maintainer attention. platform: android Issues / PRs which are specifically for Android. platform: ios Issues / PRs which are specifically for iOS. plugin: auth resolution: no-response Customer did not respond after some time. Stale Issue with no recent activity type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

8 participants