Expo MapView not working on Android


#1

Hi,

I have a detached Expo app. And I’m following the docs here:
https://docs.expo.io/versions/latest/sdk/map-view

I have changed my app.json file like so:

   "android": {
      "package": "com.mypackage.name",
      "config": {
        "googleMaps": {
          "apiKey": "[api key]"
        }
      }
    },

But I still get a grey ish map. Do I have to add the apiKey to my manifest or somewhere since I’m a detached app? If so how do I do that?

(apiKey and package all match up…)


#2

Solved it - ya I had to add to the Manifest and not in app.json.

Here for anyone who runs into this:

 <!-- ADD GOOGLE MAPS CONFIG HERE -->
    <!-- BEGIN GOOGLE MAPS CONFIG -->
    <meta-data
      android:name="com.google.android.geo.API_KEY"
...

closed #3

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.