nativescript-google-maps-sdk icon indicating copy to clipboard operation
nativescript-google-maps-sdk copied to clipboard

Android- programmatically specify API key?

Open neil-119 opened this issue 7 years ago • 4 comments

We dynamically inject various API keys during the build step depending on the environment. We're able to do this for iOS with GMSServices.provideAPIKey, but for Android is there a way to not use the XML file but instead specify the key via an API call? Thanks!

neil-119 avatar Aug 14 '18 17:08 neil-119

do you find a solution for this problem? i am stuck to on this thing

Toq97 avatar Sep 25 '18 07:09 Toq97

Is it possible to use this solution with that plugin?

wendt88 avatar Feb 12 '19 17:02 wendt88

@neil-119 , how did you do it for iOS?

prodoxx avatar Oct 20 '19 21:10 prodoxx

Maybe this is of help to anyone ending here, it's not exactly programmatically but editing the XML files on build: https://github.com/dapriett/nativescript-google-maps-sdk/issues/307#issuecomment-924696828

xiromoreira avatar Sep 22 '21 08:09 xiromoreira