【发布时间】:2019-02-11 07:13:38
【问题描述】:
我已将 Places Autocomplete 或 Places API 与 Maps、Google Login 和 Firebase RealtimeDatabase 集成在一起。但是当我运行应用程序时,错误提示: “操作无法完成。iOS 版 Places API 未启用。有关如何启用 iOS 版 Google Places API,请参阅开发者指南 (https://developers.google.com/places/ios-api/start)。”
Places 一直运行良好,直到: 上周,我不得不放弃我的 Firebase 项目并创建一个新项目。 做了什么要求: -更改了 GoogleServices-info.plist - 客户 ID -url 类型
我也已经在我的 Google Cloud Platform 中启用了 Google Places API。
在我的
application(didFinishLaunchingwithOptions:)
GMSServices.provideAPIKey("<key from project>")
GMSPlacesClient.provideAPIKey("<key from project>")
请记住,Google 地图、Google 登录和 Firebase 数据库都运行良好。 该项目也由 android 版本共享,并且 places api 在那里工作正常。 似乎无法解决问题。
【问题讨论】:
标签: ios swift xcode google-places-api