iOS and Mac OS X client library for Countly
Objective-C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore Initial commit Mar 8, 2013
Countly.h
Countly.m
README.md

README.md

#Countly-sdk-cocoa This is an iOS and Mac OS X client library for Countly. It's based on the official library.

##Main differences with the official library

  • Universal: iOS and OS X.
  • Not using OpenUDID.
  • Option to disable the session duration tracking.
  • Clean-up of the requests in case of network failure.

Requirements

Earliest supported deployment target - iOS 5.0 / Mac OS 10.7

It uses ARC.

Worked with OS X Sandboxing (add the com.apple.security.app-sandbox entitlement).

Installation

  • Drag the Countly.h and Countly.m class files into your project.
  • Add the System Configuration framework SystemConfiguration.framework.
  • For iOS, Add the Core Telephony framework CoreTelephony.framework.
  • Register your app:
#import "Countly.h"
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    [[Countly sharedInstance] startWithAttributes:@{
        CountlyAttributesAPIKey : @"MY_APP_KEY",
          CountlyAttributesHost : @"https://MY-SERVER.com"
     }];
    return YES;
}

License

MIT license.