Replay.io iOS Client Library

See Github for more detailed information on configuring the library and its usage.

Installation

  1. Add ReplayIO.framework to your project
  2. Add the following under the “Link Binary With Libraries” section of “Build Phases”
    • SystemConfiguration.framework
    • libsqlite3.dylib
  3. Import the header file
#import <ReplayIO/ReplayIO.h>

4.. Initialize the tracker

[[ReplayIO sharedTracker] trackWithAPIKey:@"Your API Key"];

Tracking Events

[[ReplayIO sharedTracker] trackEvent:@"Event name"
                          distinctId:@"A distinct string that identifies the user"
                          properties:@{@"key": @"value"}];

Set Traits

[[ReplayIO sharedTracker] updateTraitsWithDistinctId:@"A distinct string that identifies the user"
                                          properties:@{@"key": @"value"}];

Debugging

[[ReplayIO sharedTracker] setDebugMode:YES];

Enable/disable

[[ReplayIO sharedTracker] enable];
[[ReplayIO sharedTracker] disable];