How to request a Google Maps API Key
This article explains how to manually request a Google Maps API key for your AppMachine app.
This key is required in order to be able to publish your Android app.
- 2.After logging in, navigate to https://console.cloud.google.com/projectcreate and create a new project. (If you're an experienced Cloud Console user you can also opt to use an existing project.)
- 3.After the project has been created, open the API Library page via APIs & Services > Library
- 4.Search for the Maps SDK for Android API and use the Enable button to enable it.
- 5.When you've enabled the API, navigate to the APIs & Services > Credentials page to create your API key.
- 6.On the credentials page, use the Create Credentials button at the top of the screen to create a new API key.
- 7.Use the Edit API Key link to restrict the key for use in your Android app only.
- 1.Open AppMachine
- 2.Open your app
- 3.Click on the Publish button in the top right corner
- 4.Click on Edit Store Info in the Google Play Store tile
- 5.Enter the key in the Google Maps API Key field
HIGHLY RECOMMENDED : Optional steps to secure your API key to be only used in this app All the next steps are optional if you want to restrict the API key for being reused by other developers in other apps:
- 1.Publish your app to Google Play Store
- 2.Upload your app at Google Play
- 3.Copy SHA1
- 4.Go back to Google Cloud
- 5.Select the Android apps option from the Application restriction options, and use the Add an item button to add your app's technical specifications to this API key. * Note: You can obtain your app's package name and SHA1 hash via [email protected].
- 6.Enter your app's package name and SHA1 hash, and use the Done button to complete the process. * Note: The package name and SHA1 hash below are examples. You can obtain your app's package name and SHA1 hash via [email protected].
- 7.Use the Save button at the bottom of the page to save the changes you've made to your API key.
- 8.On the credentials overview page, use the copy button to copy the newly created and restricted API key.Congratulations! You've just successfully created a Google Maps API key for your app.