Put Google Maps API key in .env and reference it in app.json

  1. SDK Version: 35
  2. Platforms(Android/iOS/web/all): Web

How would I be able to put Google Maps API key in .env file and reference it from app.json? If not possible, how do people currently go about hiding ios.config.googleMapsApiKey and android.config.googleMaps.apiKey from source control?

The key is public. You lock it in the Google Cloud console by specifying which domains are allowed or whitelisted, That way its only valid from your site. You can also add localhost:5555 for testing purposes

Android Studio is the recommended development environment for building an app with the Maps SDK for Android.

I hope, this works well for me, thank you!