
Java is a registered trademark of Oracle and/or its affiliates.I just installed Flutter(2.2.1) on my MacBook(Big Sur 11.4). For details, see the Google Developers Site Policies. Now that you have an API key, create and configure a project as described inĮxcept as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. allowed-application="sha1_fingerprint= SHA1_FINGERPRINT,package_name= ANDROID_PACKAGE_NAME" Gcloud alpha services api-keys update "projects/ PROJECT/keys/ KEY_ID" \ Gcloud services api-keys list -project=" PROJECT"Ĭlear existing restrictions on existing key. If the Maps SDK for Android is not listed, you need to

Under Key restrictions, set the following restrictions:.Select the API key that you want to set a restriction on.Instead, you must go to the app signing page on the Play Console to get your certificate fingerprint. The Android SDK tools generate this certificate when you run a release build.įor more information about digital certificates, see theįor information about getting your certificate fingerprint, see Authenticating Your Client. Release certificate: Use this certificate when you're ready to release yourĪpp to an app store.The Android SDK tools generate this certificate automatically when you run a debug Do not attempt to publish an app that's signed with a debugĬertificate. Debug certificate: Only use this certificate type with apps you're testingĪnd other non-production code.Signing key that was used to sign the application. When you restrict your API key, you must provide the SHA-1 certificate fingerprint of the When restricting an API key in the Cloud Console,Īpplication restrictions override any APIs enabled under API restrictions.įollow best practices by creating a separate API key for each app, and for each platform Restricting API keys adds security to your application by

Google strongly recommends that you restrict your API keys by limiting their usage to those onlyĪPIs needed for your application. Note: You can use the same API key for your The new API key is listed on the Credentials page under API keys.Ĭloud SDK gcloud alpha services api-keys create \ The API key created dialog displays your newly created API key.

On the Credentials page, click Create credentials > API key. Go to the Google Maps Platform > Credentials page. Prepare for Google Play data disclosure requirements.
