最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

How to Use Cloud Functions with MethodChannel to Set Google API Key at Runtime in Flutter? - Stack Overflow

programmeradmin0浏览0评论

I’m trying to use Cloud Functions in combination with MethodChannel to set the Google API key at runtime in my Flutter app. However, I’m facing an issue because the flutter_google_maps package does not support setting the API key dynamically.

1 - I attempted to use MethodChannel to retrieve the API key from Firebase Cloud Functions. 2 - I tried setting the API key dynamically in Flutter before initializing GoogleMapController, but flutter_google_maps does not support this approach.

Is there any alternative way to set the Google Maps API key dynamically at runtime?

发布评论

评论列表(0)

  1. 暂无评论