Skip to content

Error API_KEY_ANDROID_APP_BLOCKED #90

@guillaumegarcia13

Description

@guillaumegarcia13

I recently encountered that error

GCM register request attempt 1 out of 100 has failed with Error=PHONE_REGISTRATION_ERROR
GCM register request attempt 2 out of 100 has failed with Error=PHONE_REGISTRATION_ERROR
Error during fcm_install: {
  "error": {
    "code": 403,
    "message": "Requests from this Android client application \u003cempty\u003e are blocked.",     
    "status": "PERMISSION_DENIED",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.ErrorInfo",
        "reason": "API_KEY_ANDROID_APP_BLOCKED",
        "domain": "googleapis.com",
        "metadata": {
          "consumer": "projects/289722593072",
          "service": "firebaseinstallations.googleapis.com",
          "androidPackage": "\u003cempty\u003e"
        }
      },
      {
        "@type": "type.googleapis.com/google.rpc.LocalizedMessage",
        "locale": "en-US",
        "message": "Requests from this Android client application \u003cempty\u003e are blocked."  
      }
    ]
  }

I assume some of the hard-coded parameters to access Firebase have been blocked.
Is there a way to generate new ones (as environment variables of some sort)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions