chrismiles / countly-sdk-cocoa

iOS and Mac OS X client library for Countly

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#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.

About

iOS and Mac OS X client library for Countly


Languages

Language:Objective-C 100.0%