AppForShareOpen App builder

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

The map uses the Maps SDK for Android with your Android key. The key is restricted to the app's package name and the SHA-1 values of its signing keys.

iPhone: Apple Maps

The map uses Apple Maps, which needs no key and no setup in Google Cloud. Your iPhone bundle ID is shown on the card for reference.

Web apps: Google Maps

The map uses the Maps JavaScript API with your web key, restricted to your site domain. It loads only on screens that have a map.

Places from your data

Markers come from the app's data. In the managed backend a location field holds a latitude and a longitude; in Data and users you type it as "29.7604, -95.3698". Before real data exists, the AI uses sample places near each other in one city.

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. 1. Open the app and find Integrations

    You do this
    Open 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. 2. Click Set up on the Maps row

    You do this
    The card opens the setup steps with your app's own package name, SHA-1 values and bundle ID, each with a Copy button.
  3. 3. Create the key in Google Cloud

    You do this
    Follow the steps for an Android key or a web key below.
  4. 4. Paste the key and click Turn on and save

    You do this
    Choose 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. 5. The checks run

    AppForShare does this
    Click 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. 6. Ask the chat for a map

    You do this
    In 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. 7. Build again

    You do this
    Builds 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. 1. Pick a project and link billing

    You do this
    Open 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. 2. Enable Maps SDK for Android

    You do this
    APIs and Services, Library: enable "Maps SDK for Android". iPhone uses Apple Maps and needs nothing here.
  3. 3. Create a restricted API key

    You do this
    Credentials, 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. 4. Set a budget alert and quotas

    You do this
    Billing, Budgets in Google Cloud Console, and daily quotas on the API, so a mistake can never run up a bill.
  5. 5. Paste the key

    You do this
    Paste 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

The key AppForShare signs your Android builds with. It shows after the first Android build of the app; come back and add it to the Google key then.

SHA-1 of the AppForShare store signing key

Shown when the app is in the AppForShare store, which signs its store releases with another key. Add it too, or the map stays blank in copies installed from the store.

Play App Signing SHA-1

After your first Google Play upload, open Play Console, Test and release, App integrity and copy the "App signing key certificate" SHA-1. Add it to the key in Google Cloud and to More SHA-1 values on the card.

Any other key

If you sign releases yourself, add that key's SHA-1 under More SHA-1 values. The card keeps up to 5 extra values, one per line.

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

The app asks for location only while it is in use, never in the background. On Android that is the approximate and precise location permissions, with no background location.

Only after a tap

The app asks when the person taps a map action, such as Show places near me, never when a screen loads. The blue dot shows only after they allow it, and the map keeps working if they say no.

One specific sentence for iPhone

Write why the app shows the location, up to 200 characters, for example "Your location shows the stores near you." iPhone shows it in the permission dialog, and Apple asks that it says why.

Web apps

The browser asks for the location only after the person clicks the map action.

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. 1. Pick a project and link billing

    You do this
    Open Google Cloud Console, make or pick a project and link a billing account.
  2. 2. Enable Maps JavaScript API

    You do this
    APIs and Services, Library: enable "Maps JavaScript API".
  3. 3. Create a key for your domain

    You do this
    Credentials, 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. 4. Paste it as the web key

    You do this
    Turn 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.