【问题标题】:Google ios sdk - maps work in simulator but not in device - ClientParametersRequest failed with request timed out errorGoogle ios sdk - 地图在模拟器中工作,但不在设备中 - ClientParametersRequest 失败,请求超时错误
【发布时间】:2022-03-10 03:51:36
【问题描述】:

我正在使用 google ios sdk 运行基于地图的应用程序。已创建 ios api 密钥并将其添加到应用程序。在模拟器中运行良好,但在设备中运行良好。当尝试在 Ipad 中运行它时,应用程序运行并添加了标记,但底层地图显示为灰色。没有地图,只有标记。控制台错误消息如下。任何帮助表示赞赏..

ClientParametersRequest failed, 0 attempts remaining (0 vs 5). Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x1d5656e0 
{
NSErrorFailingURLStringKey=https://clients4.google.com/glm/mmap, NSErrorFailingURLKey=https://clients4.google.com/glm/mmap, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x2333dc70 "The request timed out."}
2013-07-12 15:40:23.452 TreeInspect[330:907] Google Maps SDK for iOS cannot connect or validate APIKey: Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x1d5656e0 {NSErrorFailingURLStringKey=https://clients4.google.com/glm/mmap, NSErrorFailingURLKey=https://clients4.google.com/glm/mmap, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x2333dc70 "The request timed out."
}

【问题讨论】:

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


    【解决方案1】:

    从错误消息“请求超时”来看,您似乎只是没有活动的 Internet 连接。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-05-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-05-16
      • 1970-01-01
      • 2022-08-10
      相关资源
      最近更新 更多