mapsplugin / cordova-plugin-googlemaps

Google Maps plugin for Cordova
Apache License 2.0
1.66k stars 918 forks source link

Plugin with dynamic api key option #2797

Closed aljosalindic closed 4 years ago

aljosalindic commented 4 years ago

Hello, I'm developing an Ionic 5 app and I'm planning to incorporate this plugin. There are multiple companies that are interested in the app and they would like to distribute the app to their employees, which puts me in a bit of an odd situation. Each company wants to use their own google api key (beause of the billing). Is there a way, to dynamically input the API key through js code? This would allow me to use a single publish of the app for all the clients. Otherwise I'd have to create a publish (with the specific API key) for every company that wants to use the app.

Thank you for your time and effort

mcastets commented 4 years ago

Hi,

Do you know that using Google Maps native SDK is free on iOS and Android? Therefore, do you really need a different API key for each company?

wf9a5m75 commented 4 years ago

Is there a way, to dynamically input the API key through js code?

Unfortunately, no.