BookMyStay BookMyStay Docs Buy Now
Step 4 · Mobile Apps

Google Maps Key (Mobile App)

Configure Google Maps SDK inside the Customer mobile app if you prefer Google Maps over OpenStreetMap.

Optional Map Provider 15 min

Free OpenStreetMap Works Out of the Box

BookMyStay has full built-in support for free OpenStreetMap with zero required API keys. Complete this page only if you have chosen Google Maps as your map provider in Settings → Maps & API Credentials.

Native mobile builds require the Google Maps API key embedded inside Android and iOS configuration files to initialize the hardware-accelerated map view for property locations and city search.

1. Create the API key in Google Cloud Console#

In the Google Cloud Console, select your Firebase project, open APIs & Services → Library, and enable the following APIs:

API Service Used By Purpose in BookMyStay
Maps SDK for Android Customer App (Android) Interactive hotel map view & branch radius on Android devices
Maps SDK for iOS Customer App (iOS) Interactive hotel map view & branch radius on iPhones and iPads
Places API (New) Customer App & Admin Panel Destination search, hotel autocomplete, and location picker
Geocoding API Customer App & Admin Panel Translating hotel addresses to latitude & longitude coordinates
Maps JavaScript API Admin Panel & Customer Website Web dashboard hotel map pins and branch location setup

Navigate to APIs & Services → Credentials → Create Credentials → API key, and copy your newly generated key.

2. Add the key to the Customer App#

Open customer/android/app/src/main/AndroidManifest.xml and add your API key within the <application> tag:

customer/android/app/src/main/AndroidManifest.xml
<meta-data
    android:name="com.google.android.geo.API_KEY"
    android:value="AIzaSy...your-actual-key..." />

Open customer/ios/Runner/AppDelegate.swift and set your key in the initialization handler:

customer/ios/Runner/AppDelegate.swift
private let googleMapsKey = "AIzaSy...your-actual-key..."
GMSServices.provideAPIKey(googleMapsKey)