I have not published to Play Store yet. I’m still testing with adb install on a Genymotion emulator. When I attempt to hit Google Maps, here’s what I see in adb logcat:
06-22 03:33:46.246 7129 7129 I Google Maps Android API: Google Play services package version: 12685026
06-22 03:33:47.074 7129 7256 E Google Maps Android API: Authorization failure. Please see Maps SDK for Android Quickstart | Google Developers for how to correctly set up the map.
06-22 03:33:47.075 7129 7256 E Google Maps Android API: In the Google Developer Console (https://console.developers.google.com)
06-22 03:33:47.075 7129 7256 E Google Maps Android API: Ensure that the “Google Maps Android API v2” is enabled.
06-22 03:33:47.075 7129 7256 E Google Maps Android API: Ensure that the following Android Key exists:
06-22 03:33:47.075 7129 7256 E Google Maps Android API: API Key: AIzaSyCPyKmt6in3JwAsogYikNNjor8qgU9stRQ
06-22 03:33:47.075 7129 7256 E Google Maps Android API: Android Application (<cert_fingerprint>;<package_name>): [MYSTERY CERT AND NAME HERE]
That is very much not the API key I put in my app.json file or what I have on Google’s API console. I know app.json is being read, though, because my icon and splash screen shows up when I install and run the APK.
I’m pretty sure the key highlighted above is a default public key getting pulled in from somewhere. Am I doing something dumb, or is there something else going on here?
Hi! Have you followed all the instructions here MapView - Expo Documentation including exp fetch:android:hashes? Make sure to also rebuild the app as mentioned in step 12.
Yup. I also verified the fingerprint and app name being shown in adb logcat was right. The API is the only thing that’s odd. Here’s something I noticed in the exp build:android logs:
Okay I have zero idea what’s different, but I reloaded a native app on Genymotion, and everything’s working fine now. I did bump the versionCode on the app.json, so maybe that knocked loose something that was cached? Anyway, it’s working now