CocoaPods trunk is moving to be read-only. Read more on the blog, there are 19 months to go.

wywyTVA 0.0.5

wywyTVA 0.0.5

TestsTested
LangLanguage Obj-CObjective C
License Custom
ReleasedLast Release Apr 2015

Maintained by wywyTVA.



wywyTVA 0.0.5

  • By
  • Madhava Jay

wywy TV Analytics iOS Library

Usage

This library takes your wywy Customer ID and optionally the Device Advertising ID. Import the WYTracker header file anywhere you intend on using the Tracker.

We would suggest in the AppDelegate.m to execute as soon as possible.

#import "WYTracker.h"

The [WYTracker sharedManager] is a singleton which will maintain internal state so that it can be used easily across your app.

To use the Advertising ID you must import the AdSupport framework.

@import AdSupport;

We recommend checking if the user wants to share their Advertising ID using the Apple provided property advertisingTrackingEnabled.

Make sure to place your wywy Customer ID in the string supplied to the method.

if ([ASIdentifierManager sharedManager].advertisingTrackingEnabled) {
    [[WYTracker sharedManager] trackWithCustomerId:@"XXXXXX" AndAdvertisingId: [[[ASIdentifierManager sharedManager] advertisingIdentifier] UUIDString]];
} else {
    [[WYTracker sharedManager] trackWithCustomerId:@"XXXXXX"];
}

In addition there are notifications which you can subscribe to.

wywy_first_launch_tracked This returns a userInfo dictionary like this: @{ "name":"tracked", "value":@1 }

Where the value will be either @1 or @0 depending on if the First Launch of the app has been tracked yet.

wywy_first_launch_params This returns a userInfo dictionary like this: @{ "name":"params", "value":@{} }

Where the value will be a dictionary of the params we are sending to our tracker service.

wywy_first_launch_response This returns a userInfo dictionary like this: @{ "name":"success", "value":@1 }

Where the value will be either @1 or @0 depending on if the GET request to our tracker service returned a 2xx response or not.

You can subscribe to these events like so: [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(receiveWywyTrackerNotification:) name:@"wywy_first_launch_tracked" object:nil];

Requirements

pod 'AFNetworking'

Installation

To install it, simply add the following line to your Podfile:

pod 'wywyTVA'

Author

wywy GmbH

License

Copyright 2015 wywy GmbH. All Rights Reserved.