Last active
August 29, 2015 14:02
-
-
Save yurrriq/6dcb79abd9a5e0961a62 to your computer and use it in GitHub Desktop.
Flurry iOS Integration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "Flurry.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pod 'FlurrySDK' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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