1. Create a new app in Quixxi Portal using “Add New” button.
  2. In "Create your app" dialog give a name of your application and click Continue.
  3. Click the newly created app and choose "Control" in header tab and choose Package in left side menu.
  4. Click "Add Platform" and choose tvOS and check “Analytics” in Select modules option.
  5. Give proper package name for your application and hit “Start Packaging”.
  6. Now Quixxi will pack Analytics framework and notify it gets completed.
  7. Click "Download Demo" to get a complete demo application, which showcase the features of Analytics framework. You can install this demo into your tvOS 8. simulator, by drag and drop on to the simulator.
  8. Click "Launch Demo App" for a quick demo in the browser.
  9. Click "Download Library" to get the library and you will receive a package which contains “QuixxiAnalytics.framework & QuixxiActivation.framework”.

Add the below permissions in info .plist file

*Choose Project’s root directory -> click Targets -> Click info tab
*Select an item in info.plist click the plus button and add the following items

  1. NSLocationAlwaysUsageDescription

Initialising the Quixxi Analytics SDK

        Initialise Quixxi Analytics SDK,by adding the below line in your Appdelegate class.Include header file <tvOSAnalytics/QuixxiAnalytics.h>file in the Appdelegate.h Inside the function


<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {[[QuixxiAnalytics sharedInstance]startAnalytics];}</span></span>


Sending Events

        Include header file QuixxiAnalytics.h in the class ,where you are sending the event.


<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">[[QuixxiAnalytics sharedInstance] addEventwithTitle:<Title> //A string unique identifier of your event

andDescription:<Description> //A string describes your event value

completion:^(NSString *resultString, NSError *error) {//Do something}];</span></span>



<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">[[QuixxiAnalytics sharedInstance]addEventwithTitle:<Title> //A string unique identifier of your event with

Description:<Description> //A string describes your event value

withEventDetail:<Event details>

withEventObject:nil completion:^(NSString *resultString,NSError *error){//Do something}];</span></span>


<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">[[QuixxiAnalytics sharedInstance] addEventwithTitle:<Title> //A string unique identifier of your event

withDescription:<Description> // A string describes your event value

withEventDetail:<Event details>

withEventObject:<user dictionary> completion:^(NSString *resultString, NSError *error) {//Do something}];</span></span>


Example

<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">NSDictionary *eventDictionary = [NSDictionarydictionaryWithObjectsAndKeys:@"user@email.com",@"email",@"testuser",@"username", nil];

[[QuixxiAnalytics sharedInstance]addEventwithTitle:<Title> //A string unique identifier of your event

withDescription:<Description> // A string describes your event value

withEventDetail:<Event>

withEventObject:<eventDictionary>completion:^(NSString *resultString, NSError *error)

{if(error==nil){NSLog(@"event sent");}else{NSLog(@"Error: %@",[error localizedDescription]);}}];</span></span>


Update User Email

<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">[[QuixxiAnalytics sharedInstance]setEmailID:<EmailId>];</span></span>


EmailId - Update user mail id.


Example

<span style="font-size: 16px;"><span style="font-family: 'Times New Roman',Times,serif;">[[QuixxiAnalytics sharedInstance]setEmailID:@“test@gmail.com”];</span></span>