简体   繁体   中英

Countly iOS SDK fails request

I have added Count.ly iOS SDK to project, in didFinishLaunchingWithOptions I have added Count.ly initialisation as

        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)

But in console it is giving error

[Countly] Request <0x170003290> failed!

And it is not showing anything on dashboard. My Account is on trial version enterprise edition. Do I have to do any other configuration?

Please make sure you do not add extra / at the end of host.

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

should be

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

Disclaimer: I'm the SDK Developer

(EDIT: incorrect host configurations like this one is now handled automatically on v17.05+)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM