You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I added my Google Api Key in the manifest. When I test my app by running expo start or expo run:android, it's working well, but when I generate the apk with expo build:android -t apk, when I go to the screen with the <MapView/>, the application stucks and the only way to do something is to remove the app from memory and relaunch it.
Any idea ?
Package version:
"react-native-maps": "0.30.2"
"react-native": "0.68.2"
Device: Emulator Pixel 4 API 30 Android 11.0
EDIT:
Found the problem, I was added the API key in the manifest, but it should be in the app.json under the android.config.googleMaps.apiKey
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm using expo, and installed it with
I added my Google Api Key in the manifest. When I test my app by running
expo start
orexpo run:android
, it's working well, but when I generate the apk withexpo build:android -t apk
, when I go to the screen with the<MapView/>
, the application stucks and the only way to do something is to remove the app from memory and relaunch it.Any idea ?
Package version:
"react-native-maps": "0.30.2"
"react-native": "0.68.2"
Device: Emulator Pixel 4 API 30 Android 11.0
EDIT:
Found the problem, I was added the API key in the manifest, but it should be in the
app.json
under theandroid.config.googleMaps.apiKey
Beta Was this translation helpful? Give feedback.
All reactions