简体   繁体   English

以 Xamarin 形式动态设置 Google Maps API 密钥

[英]Dynamically set Google Maps API key in Xamarin forms

I am working for a product based company.我在一家基于产品的公司工作。 We are building Xamarin form apps for our customers.我们正在为客户构建 Xamarin 表单应用程序。 We would like to have separate Google Maps API key for our customers.我们希望为我们的客户提供单独的 Google Maps API 密钥。 But as per the documentation this can only be done in Manifest files.但根据文档,这只能在清单文件中完成。

We would like to set this key dynamically, as our app is available on Play Store and based on customer, we will decide the key.我们想动态设置此密钥,因为我们的应用程序可在 Play 商店中使用,并且根据客户,我们将决定密钥。

Kindly let me know how can we achieve this.请让我知道我们如何实现这一目标。

您可以做的一件事是为每个客户设置一个“标签”,并在您调用 Google 地图的同时调用 google 分析。然后您可以根据标签在 Google Analytics 上运行报告

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM