【问题标题】:Flutter / Google Map not showing on iOSFlutter / Google Map 未在 iOS 上显示
【发布时间】:2021-10-08 07:26:39
【问题描述】:

我在我的颤振应用程序中实现了谷歌地图,使用 这个包:https://pub.dev/packages/google_maps_flutter。它显示在 Android 模拟器中,但未显示在 iOS 模拟器和实际的 iOS 设备(我的 iPhone)上。

环境

  • 使用 Flutter 1.22.6CocoaPods 1.9.3 时工作正常,但更新到 Flutter 2.2.3 和 CocoaPods 1.10.1,开始不出现了。
  • 我还在 Google Cloud Platform 中为此项目启用了 Maps SDK for AndroidMaps SDK for iOS
  • 在 Info.plist 中将 io.flutter.embedded_views_preview 设置为 true

感谢您的帮助。

【问题讨论】:

  • 您是否对 Android 和 iOS 使用相同的 API 密钥?如果是,是否不受限制?

标签: ios flutter google-maps google-maps-sdk-ios


【解决方案1】:

请先检查 API 密钥,您可能需要为 iOS 使用单独的密钥。

【讨论】:

    猜你喜欢
    • 2021-09-18
    • 1970-01-01
    • 2020-01-17
    • 1970-01-01
    • 2014-09-15
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多