我已经将Places Autocomplete或Places API与Maps、Google登录和Firebase实时数据库集成。但是当我运行应用程序时,错误提示说:“无法完成操作。iOS的Places API未启用。请参阅开发人员指南(https://developers.google.com/places/ios-api/start),了解如何启用iOS的Google Places API。”
在上周之前,Places一直工作正常。
但是,我不得不放弃我的Firebase项目并创建一个新的项目。我已经做了必要的更改:
-更改了GoogleServices-info.plist
-客户端ID
-URL类型
我已经在我的Google Cloud平台上启用了Google Places API。
请注意,Google地图、Google登录和Firebase数据库都正常工作。该项目还在Android版本中共享,并且那里的Places API也正常工作。似乎找不到问题所在。
我已经在我的Google Cloud平台上启用了Google Places API。
application(didFinishLaunchingwithOptions:)
GMSServices.provideAPIKey("<key from project>")
GMSPlacesClient.provideAPIKey("<key from project>")
请注意,Google地图、Google登录和Firebase数据库都正常工作。该项目还在Android版本中共享,并且那里的Places API也正常工作。似乎找不到问题所在。