0

我已将 Count.ly iOS SDK 添加到项目中,didFinishLaunchingWithOptions我已将 Count.ly 初始化添加为

        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> 失败!

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

4

1 回答 1

1

请确保不要/在主机末尾添加额外内容。

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

应该

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

免责声明:我是 SDK 开发人员

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

于 2017-04-18T17:56:45.827 回答