Skip to content

Instantly share code, notes, and snippets.

@yurrriq
Last active August 29, 2015 14:02
Show Gist options
  • Save yurrriq/6dcb79abd9a5e0961a62 to your computer and use it in GitHub Desktop.
Save yurrriq/6dcb79abd9a5e0961a62 to your computer and use it in GitHub Desktop.
Flurry iOS Integration
#import "Flurry.h"
@implementation AppDelegate
- (BOOL)application:(UIApplication *)application
didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
// Set up Flurry crash reporting
// Note: iOS only allows one crash reporting tool per app; if using another,
// set to NO
[Flurry setCrashReportingEnabled:NO];
[Flurry startSession:@"{{UNIQUE_APPLICATION_KEY}}"];
}
@end
pod 'FlurrySDK'
#import "ViewController.h"
@implementation ViewController
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
NSDictionary *params = @{@"{{USER_INFO_DESCRIPTION}}" : @"{{USER_INFO}}"};
[Flurry logEvent:@"{{EVENT_NAME}}" withParameters:params];
}
@end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment