#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.
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).
- Drag the
Countly.h
andCountly.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;
}
MIT license.