How do I add the Google API Key?

You must generate and add your Google Maps API key for the Maps, Geocoding, Distance, and Autocomplete address functions to work properly.

1.- You must enter to create a new project and following it is necessary to complete these fields:

The country where you’ll use the app (the main one, although it could work in other countries)
Accept the terms
Receive a newsletter (optional)
Accept and continue

2.- Once entered, you must open the side menu (1) (if it’s not open), and click on Facturation (2)
3.- Following, click on ADD A FACTURATION ACCOUNT

4.- If you previously have a billing account, the site will only ask to select it, otherwise it will ask you to create an account choosing the country that corresponds to the added credit card (1), accept service conditions (2), and click on CONTINUE (3)

5.- You must complete all the fields with the correspondent information of the person who will pay

6.- Finally, you must add the data of the bank card, which probably requires a little charge for validating, which will be refunded some minutes later, NO CHARGE WILL BE MADE TO THIS CARD unless you exceed the free amount (API Key Google Maps prices)

7.- Once the card is accepted, it will take you back to the home page

8.- Now, you must repeat steps 8 to 11 in each of the following APIs:

Directions API
Distance Matrix API
Maps JavaScript API
Maps SDK for Android
Maps SDK for IOS
Places API

9.- Click on Library

10.- Write the name of the API you’re adding (each of the above)

11.- Up next, you must click on Activate, in the following picture we show an EXAMPLE with Maps SDK for Android, but you must do this step with each one of the APIs described in step 8 so your app works properly.

12.- Once it’s enabled, it will take you back to the page in which you’ll repeat steps 8, 9, 10, and 11 of this guide until each API of step 8 is activated, then click on your API panel and verify if each one is done

13.- Make sure you have all these APIs enabled, otherwise go back to step 8

14.- Click on Credentials to generate your API key

15.- Select “Credentials in the API and services section”


17.- Select “API key”

18.- Copy the API Key to attach it to your app in Apphive

19.- Go to the Apphive editor ( and enter in your app, after that click on the name to open Settings

20.- Click on Settings

21.- Click on API Keys to open the Keys section

22.- Finally, paste the API key you’ve copied in step 18 and click on “save”, you must do this with each app you have in your project, you can use the same API Key for all of them.

23.- After publishing your app, it is recommended to restrict this Key, for this, enter to your API key dashboard again ( and click on the app you want to restrict

24.- Select Android or iOS Apps, as appropriate, you can load both, first one and then the other, after that click on Add Element

25.- Go to your Firebase panel and go to Settings

26.- Copy the app ID and SHA1 (you may have more than one SHA1, so you must add one by one)

27.- Add this information to the App Restrict and click on “Done”

28.- You must repeat the last step for each app you want to add, and when finishing, click “save” to restrict the API

29.- When restricted, you only can use the key in the indicated apps and it will show a checkmark alongside the API key