2017-04-18 68 views
0

我已经加入Count.ly的iOS SDK项目,在didFinishLaunchingWithOptions我已经加入Count.ly初始化为Countly的iOS SDK失败请求

 let config: CountlyConfig = CountlyConfig() 
     config.appKey = "MY_APP_KEY" 
     config.host = "https://try.count.ly/" 
     config.enableDebug = true 
     config.deviceID = CLYIDFV 
     config.updateSessionPeriod = 300 
     //You can specify optional features you want here 
     config.features = [CLYCrashReporting, CLYAutoViewTracking] 

     Countly.sharedInstance().start(with: config) 

但在控制台它给错误

[ Countly]请求< 0x170003290>失败!

它没有在仪表板上显示任何东西。我的帐户处于试用版企业版。我需要做其他配置吗?

回答

1

请确保在主机末尾不添加/

config.host = "https://try.count.ly/" 

应该

config.host = "https://try.count.ly" 

免责声明:我的SDK开发

(编辑:像这样一个不正确的主机配置是现在v17.05 +自动处理)

+0

这解决了这个问题。但是这个代码是由他们的文档生成的,这是他们身边的bug。 –

+0

你可以给不正确的文档链接吗?我确定它是固定的。谢谢。 – erkanyildiz

+0

当然,http://code.count.ly/integration-ios.html?server=MY_HOST/&app_key=MY_APP_KEY –