Docs, AI App Builder
Maps: show places on a map in your app
An AI App Builder app can show places on a map: stores, venues, delivery spots or anything else with a location. Android apps use Google Maps, iPhone apps use Apple Maps with no key, and web apps use the Google Maps JavaScript API. You bring your own Google key, restricted to your app, and AppForShare shows the exact values to paste into Google Cloud Console.
Maps are on Pro and Team. Turning them on uses no credits; the chat change that adds a map to a screen costs the same as any change. For the why behind each step, read how to add a map to your app without code.
How the map works on each platform
Android: Google Maps
iPhone: Apple Maps
Web apps: Google Maps
Places from your data
A map can show markers with a title and a short text, react when a marker is tapped, and open directions in the phone's own map app from a Get directions button. When the design has a map block, the AI shows its places as markers and as a list under the map, so they are easy to read on small screens.
Turn maps on
1. Open the app and find Integrations
You do thisOpen the app in the App builder. The Integrations card shows once the app has a design, below the Backend card. Each integration has a state: Off, Needs setup, Ready or Problem.2. Click Set up on the Maps row
You do thisThe card opens the setup steps with your app's own package name, SHA-1 values and bundle ID, each with a Copy button.3. Create the key in Google Cloud
You do thisFollow the steps for an Android key or a web key below.4. Paste the key and click Turn on and save
You do thisChoose whether the map shows the person's own location and, if you like, a default region. Admins save the values; Developers see them and can run the checks.5. The checks run
AppForShare does thisClick Check now. AppForShare checks the key format, tests the key with Google and lists what is still missing. Errors must be fixed before maps are Ready. See what each check means.6. Ask the chat for a map
You do thisIn the Changes chat, write for example: Show our three stores on a map on the home screen. The change is checked like any other.7. Build again
You do thisBuilds made after the setup carry the key. Start a new build and install it from the install link to see the real map. See Android and iOS builds.
Previews in the browser and the design always show a sample map, so no key ever goes into a preview. Turn off removes maps from the next build and keeps your saved values, so turning maps on again takes one click. If the workspace moves to a plan without maps, the next build leaves the real map out.
Create the Google Maps Android key
1. Pick a project and link billing
You do thisOpen Google Cloud Console, make or pick a project and link a billing account. Google asks for one even for usage inside its free amount.2. Enable Maps SDK for Android
You do thisAPIs and Services, Library: enable "Maps SDK for Android". iPhone uses Apple Maps and needs nothing here.3. Create a restricted API key
You do thisCredentials, Create credentials, API key. Under Application restrictions pick "Android apps" and add the package name with each SHA-1 value from the card. Under API restrictions pick "Maps SDK for Android" only.4. Set a budget alert and quotas
You do thisBilling, Budgets in Google Cloud Console, and daily quotas on the API, so a mistake can never run up a bill.5. Paste the key
You do thisPaste it as the Google Maps Android API key and press Turn on and save, then Check now. A Google key starts with AIza and has 39 characters.
Which SHA-1 values to add
Android only shows the map when the key lists the SHA-1 fingerprint of the certificate that signed the copy on the phone. The card lists the ones AppForShare knows, ready to copy:
SHA-1 of the app upload key
SHA-1 of the AppForShare store signing key
Play App Signing SHA-1
Any other key
Show the person's own location
Turn on Show the person's own location when the app should show where the person is, for example to find the nearest store. It is off by default, and with it off the app has no location permission at all.
Only while the app is open
Only after a tap
One specific sentence for iPhone
Web apps
A default region (latitude, longitude and a span in degrees) is optional. Without one, each map opens around its places.
Maps in a web app
1. Pick a project and link billing
You do thisOpen Google Cloud Console, make or pick a project and link a billing account.2. Enable Maps JavaScript API
You do thisAPIs and Services, Library: enable "Maps JavaScript API".3. Create a key for your domain
You do thisCredentials, Create credentials, API key. Under Application restrictions pick "Websites" and add your site domain, for example https://www.example.com/*. Under API restrictions pick "Maps JavaScript API" only.4. Paste it as the web key
You do thisTurn on and save, then Check now. The preview keeps a sample map; the real map shows on your own domain after a deploy to your Netlify or Vercel account (Pro and Team).
What the checks mean
- Maps are on, but the Android key is missing (or the web key)
- Paste the key on the Maps card and save. Maps stay in Needs setup until it is there.
- This does not look like a Google API key
- Copy the key again from Google Cloud Console, Credentials. A Google key starts with AIza and has 39 characters.
- This is a secret key, a private key or a service account file
- Maps need only the API key. Secret values never go into an app, so the card refuses them.
- Google says this key does not exist
- The key was deleted or copied wrong. Copy it again from Credentials in Google Cloud Console.
- Google says billing is not set up for this project
- Link a billing account to the Google Cloud project. Google needs it even for free usage.
- The key works without restrictions
- Restrict it to your app (package name and SHA-1, or your domain) and to the Maps API, so nobody else can use it.
- The key exists and is restricted
- This is the good result. Open the map in a test build to see the tiles.
- Say why the app shows the location
- The location sentence is empty, too short or too general. Write one specific sentence, such as "Your location shows the stores near you."
- We could not test this key from our side
- Google did not give a clear answer. Open the map in a test build to check it.
When the map does not show
- The Android map shows grey tiles or stays blank
- The key is missing the package name or the SHA-1 of the key that signed this copy. Add the SHA-1 values from the card and wait a few minutes for Google to apply them.
- It works in test builds but not from Google Play
- Google Play signs the app with its own key. Add the Play App Signing SHA-1 from Play Console, App integrity, to the key and to More SHA-1 values.
- It is blank only in copies from the AppForShare store
- Add the AppForShare store signing SHA-1 from the card to the key.
- The web preview shows a sample map
- That is by design. The real map shows on your own domain after a deploy, with the key restricted to that domain.
- The chat says maps are not turned on for this app
- Turn maps on in Integrations first, then ask for the map again.
- A build has no map after I saved the key
- Builds made before the setup do not carry the key. Start a new build.
From the terminal or an AI assistant
appforshare builder integrations <app id> lists the integrations of an app with their state and checks, and appforshare builder integrations <app id> maps prints the setup guide and the values to copy. Admins turn maps on and save values with --android-key or --web-key, --my-location on|off, --location-reason, --region lat,lng,span and --sha1; --check runs the checks and --off turns maps off. Add --json for scripts. See the CLI docs.
In Claude, Cursor and other AI assistants, the MCP server tool builder_integrations reads the state, the checks and the setup guide. It is read only and never takes a key: keys go through the dashboard or the CLI, not through a chat.
Questions
- Does the iPhone app need a Google Maps key?
- No. On iPhone the map is Apple Maps, which needs no key. The Android key is only for Android, and web apps use their own web key.
- Is it safe to put the Google Maps key inside the app?
- Yes, when the key is restricted. An Android key restricted to your package name and SHA-1 values only works in your app, and a web key restricted to your domain only works on your site. AppForShare refuses values that look like secret keys, private keys or service account files, because those never belong in an app.
- Which plans include maps?
- Maps in the app are on Pro and Team. On Free the design shows a sample map, and the setup guide can still be read.
- Does Google charge for the map?
- Google asks for a billing account on the Google Cloud project, even for usage inside its free amount. Usage is billed by Google to your own project, not by AppForShare. Set a budget alert and daily quotas in Google Cloud Console.
- Does the app track people in the background?
- No. Location is only added when you turn on Show the person's own location, and then only while the app is open. The app asks when the person taps a map action, never when a screen loads. There is no background location.
- Why is the map blank on Android?
- Almost always the key restriction. The key must list the package name with the SHA-1 of the key that signed the copy on the phone: the AppForShare upload key for test builds, the Play App Signing key for copies from Google Play, and the store signing key for copies from the AppForShare store.
- Do I need a new version of the app after I change the key?
- No new chat change is needed. Builds, the code download and web deploys read the saved values when they run, so start a new build (or deploy again) and it carries the new key.