Skip to content

firebase_auth: Requests from this Android client application <empty> are blocked. #17591

@mehtahardikr

Description

@mehtahardikr

Is there an existing issue for this?

  • I have searched the existing issues.

Which plugins are affected?

No response

Which platforms are affected?

Android

Description

Integrated firebase_auth for phone authentication with OTP , but everytime trying to send otp it navigates to browser and ended up with error message says blocked.

did all steps but, don't what is missing still.
using flavor too for android app.

already added sha-1 and sha-256 to firebase console.

Reproducing the issue

try to integrate phone auth by adding google-services.json file

Firebase Core version

3.15.1

Flutter Version

3.32.8

Relevant Log Output

E/zzb (17468): Failed to get reCAPTCHA token with error [There was an internal error in the web widget. [
{"code":"auth/internal-error","message":"{"error":{"code":403,"message":"Requests from this Android client application <empty> are
blocked.","errors":[{"message":"Requests from this Android client application <empty> are
blocked.","domain":"global","reason":"forbidden"}],"status":"PERMISSION_DENIED","details":[{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"API_K
EY_ANDROID_APP_BLOCKED","domain":"googleapis.com","metadata":{"consumer":"projects/381127126343","androidPackage":"<empty>","service":"identitytoolkit.googleapis.
com"}},{"@type":"type.googleapis.com/google.rpc.LocalizedMessage","locale":"en-US","message":"Requests from this Android client application <empty> are blocked."}]}}"}
]]- calling backend without app verification

Flutter dependencies

Expand Flutter dependencies snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.

Additional context and comments

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs AttentionThis issue needs maintainer attention.platform: androidIssues / PRs which are specifically for Android.plugin: authtype: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions