Official Content

To use Google Maps in any compiled  Apple application, you need to have an API Key from Google. Otherwise, maps will not show when using the Maps Control TypePickLocation Method (from Geolocation external object) or Geolocation domain

The purpose of this article is to explain the necessary steps to get a Google Maps API Key for Apple

Step 1 - Create a project

Go to Google API console and if you do not have an existing project (e.g. for  an Android application), create a new one by clicking on the New project option.
image_2018524111343_1_png

Step 2 - Enable Maps API for iOS

Click on the Enable APIs and Services option.
image_2018524111714_1_png

Then, look for the Google Maps SDK for iOS service.
Settings2_png

Finally, enable it.
Settings3_png

Step 3 - Retrieve the API Key

Go to the Credentials option on the APIs & Services section and look for the iOS key. Then click on copy button (image_201852411311_1_png).
Settings4_1_png

Step 4 - Optional - Add your restrictions

By clicking on the API Key name, you are able to restrict access to your application (by default it is unrestricted, displaying a "warning" icon).
image_2018524112851_1_png
Once your requirements are satisfied, click on the Save button.

Step 5 - Set Apple Maps API Key property

Go back to your GeneXus Knowledge Base and set Apple Maps API Key property by pasting the value that you had copied in Step 3.
Settings5_png

Availability

This mechanism applies since GeneXus 15 Upgrade 11.

See Also

Apple Maps API property
Apple Maps API Key property
Google developers - Get an API Key for iOS SDK

Last update: February 2024 | © GeneXus. All rights reserved. GeneXus Powered by Globant